in reply to Keeping track of a session id (mod_rewrite?)

There is an example in the URL Rewriting Guide of setting environment variables based on part of the URL. The example they give is:

RewriteEngine on RewriteRule ^(.*)/S=([^/]+)/(.*) $1/$3 [E=STATUS:$2]

This lets a URL like /foo/S=java/bar/ get translated to the path /foo/bar, while setting the environment variable $STATUS to 'java'.


We're not surrounded, we're in a target-rich environment!