Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- FilesMatch


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.


Thread source:: http://www.webmasterworld.com/apache/4525548.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com