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

Why is my account suspended?

Why is my account suspended? If you are receiving an account suspended page when trying to access...

Do you support TeamSpeak?

We do not support Teamspeak on our servers but allow you to create a subdomain such as...

Whitelisting Our Support System Email Address

Whitelist Instructions Because we use often use html emails with http addresses in them, our...

What perl modules are installed on the server?

You can get a complete list of the modules that are installed by going to the control panel and...

Cross Origin Request Error

When receiving a cross-origin / cross original request, CORS header 'Access-Control-Allow-Origin'...