重定向我有直接/index.html到/站點文件夾301個重新導向,並且當我創建一個子域也重定向鏈接/位點,其導致404未找到防止htaccess的301上的子域
例如:members.mysite.com重定向到members.mysite/site,導致404錯誤,我可以爲特定forlder或某些東西添加execption而不更改重定向。
的.htaccess內容
AddType text/x-server-parsed-html .htm .html
RedirectMatch 301 ^/index.html(.*)$ /site$1
將子域的文檔根設置爲除主域的文檔根目錄之外**或者**使用rewrite-mod來做到這一點! – undone 2012-07-13 13:40:07