开发者

stop all htaccess rules for a specific directory

开发者 https://www.devze.com 2023-01-30 13:19 出处:网络
I have a directory for the CMS of a site and also a number of htaccess rules. I was wondering how I get a rule to ignore a specific directory.

I have a directory for the CMS of a site and also a number of htaccess rules. I was wondering how I get a rule to ignore a specific directory.

Here's an example of one of the rules I have, if you could give me the code to make this rule not apply to the directory example.com/cms/ that would really help me.

RewriteCond %{开发者_开发问答HTTP_HOST} !^example\.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]


If there are no rules in the cms directory, put a .htaccess file in the cms directory with the following:

RewriteEngine Off
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号