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
精彩评论