I want to have the ability to test .htaccess rules before saving them to the main .htaccess file.
Is it possible to set a specific request header and have Apache use a set of rules from a different .htaccess file.
I want to have the ability to test .htaccess rules before saving them to the main .htaccess file. Is it possible to set a specific request header and have Apache use a set of rules from a different .htaccess file. |
|||||||||
|
This may be possible with Apache 2.4's new features which includes <If>, <ElseIf> and <Else> directives. http://httpd.apache.org/docs/2.4/mod/core.html#if Possible example:
For older versions I am not aware of any such options. Perhaps using SetEnvIf would work. http://httpd.apache.org/docs/2.2/mod/mod_setenvif.html
I haven't tried this so I can't say that it will actually work at all but it's worth a shot. |
|||||||||||||||||
|