2010-11-21 55 views

回答

0

試試這個,看看這是否幫助

RewriteCond %{HTTP_HOST} ^www.sub1.domainname.com 
RewriteRule ^/(.*)   http://sub1.domainname.com/$1 [L,R=301] 

或者嘗試一下本作動態子域

RewriteCond %{HTTP_HOST} ^www.(.*).domainname.com 
RewriteRule ^/(.*)   http://%1.domainname.com/$1 [L,R=301] 
+0

我的問題是,子域是動態的不是靜態的,所以這個規則將不會幫助我,有沒有其他想法? – 2010-11-21 15:18:56

+0

非常感謝... – 2010-11-22 08:36:17