We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

NEW - Redirect Plugin…

Development and Programming

onepanman's avatar
onepanman
44 posts
16 years ago
onepanman's avatar onepanman

Thanks for the plugin. I was banging my head trying to figure out how to do an automatic redirect. One question though, Is there a way to set a timer? Say it shows the page for 5 secs before redirecting? For a quick example, do a search on the forms. It will provide you with a “searching” page then it will automatically redirect.

Thanks.

       
jaemie's avatar
jaemie
17 posts
15 years ago
jaemie's avatar jaemie

I’m trying to use this to redirect an entry to a PDF, which is working really well, except for the fact that it redirects to a url with a trailing slash. I’m not seeing anywhere in the plugin where I can trim the URL. Ok, well, I might be, but I’m not sure how to go about it, being inexperienced and all …

Any help would be appreciated.

       
jaemie's avatar
jaemie
17 posts
15 years ago
jaemie's avatar jaemie

Of course, after I posted this, I figured it out five minutes later.

I altered the following line of code:

$location = $FNS->create_url($location);

To this:

$location = $FNS->create_url($location,0);

This sets trailing_slash to false. I’m sure there is more effective way to do this so that this will only apply to file types (PDF, DOC, XLS, etc.) and not urls that should use the trailing slash for more efficient server load.

       
Laisvunas's avatar
Laisvunas
879 posts
15 years ago
Laisvunas's avatar Laisvunas

It seems that an additional parameter “trailing_slash” which would accept “yes” and “no” values (deault “yes”) would be of use, e.g.

trailing_slash="no"
       
mhulse's avatar
mhulse
329 posts
15 years ago
mhulse's avatar mhulse

Thanks for this plugin!!!! Works very well with pi.allow_eecode… I needed to re-direct an individual entry (no htaccess or httpd.conf access), and both of the allow php plugins (pi.allowphp.php & pi.php.php) were not getting the job done.

This works like a charm! 😊

Also, I like Laisvunas addition… Might be cool to post that on the first entry so folks can download the latest version. :D

Thanks again! Cheers, Micky

       
running with scissors's avatar
running with scissors
147 posts
15 years ago
running with scissors's avatar running with scissors

may have missed this, but is there any way to get this to spawn a new window?

       
Laisvunas's avatar
Laisvunas
879 posts
15 years ago
Laisvunas's avatar Laisvunas
may have missed this, but is there any way to get this to spawn a new window?

No, this plugin will not open a new window.

       
First 3 4 5

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.