Swiss army knife modding

broken image
broken image

Apache 2.2 provides the RewriteLog and RewriteLogLevel directives to let you specify the log file and the logging level. When carefully crafting your rules and creating your regular expressions, it's helpful to see exactly how Apache is interpreting your regexp and matching your URIs. Sounds great right? Well, although it is mentioned in the Apache 2.2 documentation, it is only available in Apache version 2.3.9 and above. Using the flag terminates not only the current round of rewrite processing (like ) but also prevents any subsequent rewrite processing from occurring in per-directory (htaccess) context. The flag will stop all rewrite rule processing even if the rewrite requires revisiting the section. The flag stops processing the current set of rules and then hands the URI back to Apache's parsing engine for aning your rules will potentially be reprocessed. That's a little deceptive, so I'll repeat. The flag will terminate the current set of rewrite rules and begin processing again. There are two flags that mod_rewrite recognizes in rewrite rules that seem to aid in preventing looping. You can get yourself into some recursive rewrite rules if you are not careful when crafting rewrite rules in a