Mod Rewrite rules to remove session id
Posted on 2006-11-07
Hi everyone, I'm having a difficult time stripping out session id's from our urls. We no longer generate session ID's in the url, however we have a lot of links out there with them still in the url. We need to strip them for those people coming in so that google no longer hates us.
Here is a typical URL: http://www.domain.com/home/contact_us.jsp;jsessionid=cThW1ZRbzXZ4
I need to rewrite that so that it goes instead to: http://www.domain.com/home/contact_us.jsp
And unfortunately, it is not for this single page, but rather for every page we host.. therefor we need a wildcard match for ANY page with sessionid to send them to the correct page.
We are using Apache 1.3.37 on Fedora.