Handling ?ref="nf" gracefully |
[eluser]msteudel[/eluser]
So I had a question, facebook is appending ?ref=nf to my links and it's breaking my links: e.g. http://domain.com/someUniqueID?ref=nf Any thoughts on a graceful way to strip that out? One thought is to add some in the index.php bootstrap, but it'd be cool to be able to use routes ... Thanks, Mark
[eluser]Gnuus[/eluser]
[quote author="msteudel" date="1288995462"]So I had a question, facebook is appending ?ref=nf to my links and it's breaking my links: e.g. http://domain.com/someUniqueID?ref=nf Any thoughts on a graceful way to strip that out? One thought is to add some in the index.php bootstrap, but it'd be cool to be able to use routes ... Thanks, Mark[/quote] I would like to know this too, any ideas??
[eluser]Victor Michnowicz[/eluser]
It sounds like some .htaccess may do the trick. Maybe this can help: http://dranger.com/weblog/entry/apache_m...tring.html
[eluser]Ochetski[/eluser]
A regular expression replacing all after ? should help. Something like this on the htaccess file may do the trick: Code: Options +FollowSymlinks
[eluser]msteudel[/eluser]
I ended putting this in my index.php file: Code: if( stristr( $_SERVER['REQUEST_URI'], '?ref=nf' ) ) {
[eluser]Gnuus[/eluser]
Thanks, but didn't work for me. I changed the config from auto to path_info, but now it's not displaying the right page!? Code: $config['uri_protocol'] = "PATH_INFO"; |
Welcome Guest, Not a member yet? Register Sign In |