[英]htaccess rewrite rule except folder
I have this rule in my htaccess
我的
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.
万分感激。
You can add a new RewriteCond
for creating exceptions for 2 folders: 您可以添加新的
RewriteCond
来创建2个文件夹的例外:
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]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.