Chris
08-09-2007, 08:57 AM
http://www.cbswords.com/product_info.php/cPath/38/products_id/232
Alright, for some reason way back when Google indexed my site with a weird session ID in it (it isn't even complete) then people started linking to those pages, which helped Google to continued to indexing these pages.
If you visit a link such as above that sessionID is removed for all further site browsing, but I'd like to craft a 301 redirect to stop Google from indexing such URLs once and for all.
So,, ideally I'd like a little RedirectMatch statement that says ...
Any url that ends in ?osCsid=459e87db should be forwarded to a URL that is exactly the same, minus the "?osCsid=459e87db" from the end.
I'm not quite comfortable enough with regular expressions to do this I think. Any gurus wanna lend a hand?
I think it'd be something like this:
RedirectMatch 301 ^(.*)osCsid=459e87db$ $1
But that isn't working for me.
Alright, for some reason way back when Google indexed my site with a weird session ID in it (it isn't even complete) then people started linking to those pages, which helped Google to continued to indexing these pages.
If you visit a link such as above that sessionID is removed for all further site browsing, but I'd like to craft a 301 redirect to stop Google from indexing such URLs once and for all.
So,, ideally I'd like a little RedirectMatch statement that says ...
Any url that ends in ?osCsid=459e87db should be forwarded to a URL that is exactly the same, minus the "?osCsid=459e87db" from the end.
I'm not quite comfortable enough with regular expressions to do this I think. Any gurus wanna lend a hand?
I think it'd be something like this:
RedirectMatch 301 ^(.*)osCsid=459e87db$ $1
But that isn't working for me.