jmenezes
jmenezes

Reputation: 1926

Method to make certain directories ignore htaccess

What methods are there to make certain directories in the root folder ignore htaccess rules (i.e don't perform any htaccess processing in these folders), other than putting a .htaccess file with RewriteEngine Off in each of these folders?

Can the rule of RewriteEngine Off be applied to all these folders in one go somewhere?

I'd like to exclude folders images, mod, user, signup from being processed by the main .htaccess file that's in the root.

Upvotes: 1

Views: 33

Answers (1)

anubhava
anubhava

Reputation: 785128

To ignore certain directories from rewrite rules use a rule like this just below RewriteEngine On line:

RewriteRule ^/?(dir1|dir2|dir3)(/.*)?$ - [NC,L]

Upvotes: 1

Related Questions