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.
For older versions I am not aware of any such options. Perhaps using SetEnvIf would work.
I haven't tried this so I can't say that it will actually work at all but it's worth a shot.