Environment Variable with mod_rewrite
| From: | Frank Wenzke | Date: | Mon, 21 Oct 2002 13:31:30 +0000 |
| Subject: | Environment Variable with mod_rewrite | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-120724@lists.php.net to get a copy of this message | ||
Hi,
I just tried the following with php 4.1.2 as an Apache Modul. I added a RewriteRule to my .htaccess file like this:
RewriteRule ^(.*)/SID([^/]+)/(.*) $1/$3 [E=SID:$2]afterwards there should be an environment variable SID. But the Superglobal $_ENV['SID'] do not exist. HTTP-Method is GET. Does anyone have a suggestion how the environment variable could be accessed?` Thanks in advance Frank Wenzke