December 6, 2012 at 7:00 am
#830395
Member
Thought I’d update just in case anyone else finds themselves having drama figuring out a working 301 redirect on SID variables.
I gave up trying to do this with htaccess. I contacted my server management guys and was given the following small piece of php code which I added to the first line of my header (WP).
[PHP]
if($_GET != “” || $_GET!= “” ){
header(“Location:http://www.mydomain.com”);
}
[/PHP]
It checks for any file call which contains “p” then variables (in my case the old phpbb session ID) and serves the home page, You could do this for any url if needed.
Cheers
Dave