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! |
|---|
In reply to Re: Keeping track of a session id (mod_rewrite?)
by jasonk
in thread Keeping track of a session id (mod_rewrite?)
by jeyroz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |