Reputation: 119
I have this rule in my htaccess
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule !\.(js|ico|gif|jpg|png|bmp|swf|css|html)$ public/index.php [QSA,L]
And now I want to add one or two exception folder. Can anyone help? Really appreciate.
Upvotes: 1
Views: 587
Reputation: 785156
You can add a new RewriteCond
for creating exceptions for 2 folders:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !/(folder1|folder2)/ [NC]
RewriteRule !\.(js|ico|gif|jpg|png|bmp|swf|css|html)$ public/index.php [NC,L]
Upvotes: 3