2010-07-25 68 views
1

我有以下幾點:永久重定向排除路徑

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完全不重定向我怎樣做。是什麼?

回答

1

一個簡單的方法就是將現有的條件之前添加

RewriteCond %{HTTP_HOST} !svn.mydomain.com