I am trying to define an environment variable in my .htaccess file, and then run a rewrite condition using that variable. Below is what I have in my .htaccess file, but the rew
Bit late - but for all the others searching ...
use SetEnvIf - see: mod_rewrite rule and setenv
SetEnvIf Request_URI ".*" ENVIRONMENT=maintenance
...