Exclude directory or folder from a rewrite rule in .htaccess

To exclude a directory or group of directories from rules in your .htaccess insert the following line before the rules in your .htaccess


RewriteRule ^(directory1|directory2)($|/) - [L]
  • 121 Users Found This Useful

Was this answer helpful?

Related Articles

Common Search Engine Optimization Tips

Get other websites to link to you. Have your website linked and posted in socal media...

osCommerce password reset

How to reset your osCommerce admin login... You can reset your osCommerce administrative login...

What is this Code 304 appearing in my stats?

304 is typically sent as a header if a visitor re-requests a document and the document has not...

Create a 410 Redirect for Missing Files

A redirect which is often forgot about is the 410 redirect. This is search engine friendly in the...

Reseller: Unable to find an ip address in when creating an account.

When creating accounts be sure to select a package in the package field. You can create a package...