I am looking for a way of using ModRewrite to strip off the session variables (storing these values in environment variables) out of the original URL and display the URL without these session variables in the browser's URL.
Example:
Original URL: http://www.thisdomain.com&session=1234&newpage=help
Desired URL displayed in Browser:
http://www.thisdomain.com
I have a rule that strips out the variables and stores these values as environmental variables, but the browser URL is not being updated.
Is what I am trying possible using the ModRewrite module?
The existing rule I am using is
RewriteRule ^(.))&session=(.))&newpage-(.)) $1 [E=session:$2,E=newpage:$3]