lucy24 - 1:04 am on Jan 13, 2013 (gmt 0)
Do your rules have to be inside envelopes at all?
One alternative is to use mod_rewrite with a RewriteCond looking at THE_REQUEST. The Request is whatever the user originally asked for, whether or not it "really" exists. So you can make the rule do the same job as the <Location> envelope.
But then, I'm more comfortable writing rules aimed at files that actually exist. For, ahem, a given definition of "exist".
Now, if you absolutely have to have those envelopes, you could add an environmental flag to the result of all other rules, and then start the <Location> ruleset by looking at that environment flag and letting it overrule everything else...
... or you could proceed directly to Apache 2.4, which apparently allows a generalized If/Then construction ;)