Let’s say you have some .htaccess rewrite rules in place using Apache’s mod_rewrite. By default if the rewrite rules are located in the root directory, they will be applied to every subdirectory, as expected. But what if you need to disable the rewrite rules so that they do not affect some specific sub-directory or sub-folder? This super quick tutorial shows the easiest way to do it.
Ready? Here it is:
For example, I use this technique to disable the 7G Firewall in a custom directory used for testing new patterns and so forth. Whatever the
mod_rewrite rules you have in place higher up the chain, the above line will disable them in any subfolder.
Source: Security Feed