Forum Moderators: phranque

Message Too Old, No Replies

RewriteEngine puts REDIRECT in environment variables' names

Using SetEnv and RewriteRule makes env vars have REDIRECT_ in their names

         

jarbas

7:59 pm on May 13, 2011 (gmt 0)

10+ Year Member



I noticed when I use RewriteEngine and SetEnv, my Environment Variables get REDIRECT_ before their names.

eg:
I have the following .htaccess:

RewriteEngine on
RewriteRule (.*) /test.php [L]
SetEnv test111=333

it will not be there the apache environment variable test111 like I wanted, but it will be REDIRECT_test111

how can I avoid it?
I wanna have my vars with the name I specified.

lucy24

5:01 am on May 15, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Uhm, aren't you just asking for trouble by putting a mod_env directive into the middle of a mod_rewrite command?