0
我想重做一個子域,但我無法弄清楚。 這是我現在有:htaccess重寫只有子域
RewriteCond %{HTTP_HOST} ^(mysubdomain).myhost.com$ [NC]
RewriteRule (.*) http://www.myhost.com/folder/index.html [R=301,L]
但是當我去子域的地址在我的瀏覽器,沒有重定向。
我只需要一個特定的子域名。 我哪裏錯了?
也許這會有所幫助: http://stackoverflow.com/questions/234723/generic-htaccess-redirect-www-to-non-www 並檢查可用的mod_rewrite。 – ZloyPotroh 2012-02-10 10:56:29