Get exclusive CAP network offers from top brands

View CAP Offers

Reply To: Old phpBB (forum trashed) – old session ID’s wont redirect

[bsa_pro_ad_space id=2]
#830395
gokken
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