I have the following in my .htaccess
file:
SetEnvIf Host "^example\.com$" myvar=1
<IfDefine myvar>
RewriteRule ^(.*)$ index2.php?q=$1 [L,QSA]
</IfDefine>
As far as I can tell, this should be working properly. However, "myvar" does not appear to get defined when I visit from example.com
. I know that I have the mod_setenvif.c
enabled (I've verified with an <IfModule> block).
Any ideas why "myvar" isn't getting defined?
SetEnvIf
? – Ethiopic