Re: Environment Variable with mod_rewrite
| From: | Marek Kilimajer | Date: | Mon, 21 Oct 2002 16:37:19 +0000 |
| Subject: | Re: Environment Variable with mod_rewrite | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120764@lists.php.net to get a copy of this message | ||
Are you sure this is not availeble only to CGI scripts?
Frank Wenzke wrote:
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