.htaccess 永久重定向排除路径
我有以下资料:.htaccess 永久重定向排除路径,.htaccess,redirect,permanent,.htaccess,Redirect,Permanent,我有以下资料: RewriteEngine On # Check if the host name contains a . (localhost won't) # Check if the host name starts with www # Check if the host name ends with .com # Check if the connection is secure RewriteCond %{HTTP_HOST} \. RewriteCond %{HTTP_HOS
RewriteEngine On
# Check if the host name contains a . (localhost won't)
# Check if the host name starts with www
# Check if the host name ends with .com
# Check if the connection is secure
RewriteCond %{HTTP_HOST} \.
RewriteCond %{HTTP_HOST} !^www [OR]
RwriteCond %{HTTP_HOST} !\.com$ [OR]
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://www.myDomain.com/$0 [R=301,L]
我想排除对svn.mydomain.com的这些检查(即svn.mydomain.com根本不重定向。我该怎么做?一个简单的方法是添加
RewriteCond %{HTTP_HOST} !svn.mydomain.com
在您现有的条件之前。一个简单的方法是添加
RewriteCond %{HTTP_HOST} !svn.mydomain.com
在你现有的条件之前