开发者

stop all htaccess rules for 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜