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.
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.
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.
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
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.