Tip: Skip all RewriteRules on a sub-request in Apache

March 18th, 2009 | Tags: ,

To have Apache mod_rewrite skip processing all rules during a sub-request you could add a NS (no sub-request) flag to each rule. Or, you could just make this the first rule:

RewriteCond %{IS_SUBREQ} true
RewriteRule .* - [L]
No comments yet.