lucy24 - 6:21 am on Dec 6, 2012 (gmt 0)
Can't think why I never thought of asking about this before...
Most of my RewriteRules are extension-specific. Pages, or images, or et cetera.
What would happen if I took each of those sets of rules and shoved them inside FilesMatch envelopes? If it doesn't end in .xtn, the server skips the whole package. Doesn't even look at the rule, let alone the conditions. Would it be faster, slower, fatal error, no difference?
Corollary question: Does FilesMatch mean FilesMatch or, uhm, URLMatch? In particular, would a directory match / or .html or both? In my current setup, mod_dir seems to execute before mod_rewrite. But I wouldn't want to rely on that.