Forum Moderators: phranque
SetEnv abc "Test"
And I want to use the variable in RewriteCond in following way:
RewriteCond abc Test RewriteRule (.*) dir/file.html [L]
Please help, Need help very Urgently. Developermind
SetEnv abc Test#RewriteCond %{ENV:abc} ^Test$RewriteRule (.*) dir/file.html [L]
SetEnv abc Test # RewriteCond %{ENV:abc} ^Test$ RewriteRule (.*) dir/file.html [L]
But don't know why it is not working for me.
Can you Plz help me.
The following piece of code worked for me.
SetEnvIfNoCase Host www\.abc\.com abc=set RewriteCond %{ENV:abc} set RewriteRule (.*) dir/file.html [L]
But the following is not working.
DeveloperMind