1
我有一個ExpressionEngine安裝,即運行2個網站。多站點ExpressionEngine .htaccess問題
自從我加入一個域指向第二個站點,我需要更新舊鏈接:http://mysite.com/othersite重定向到http://othersite.com
因此,即使http://othersite.com將在其他網站,當我試圖添加:
RewriteEngine On
RewriteBase/
Redirect 301 /othersite http://othersite.com
到mysite.com根.htaccess文件,它最終導致重定向循環的othersite.com
我怎樣才能解決這個問題?
不完全清楚你的所有不同的重定向。你說mysite應該重定向到othersite,但是你會說「儘管http://othersite.com帶來了其他網站(...)」。 othersite是否也重定向到mysite?在瀏覽器中輸入哪個網址會導致重定向循環? – Kay
第mysite.com去mysite.com。 othersite.com轉到othersite.com,但是... mysite.com/othersite是othersite駐留的地方,所以我需要將任何鏈接重定向到mysite.com/othersite to othersite.com。但是,當我這樣做時(如我在上面發佈的代碼中),它會導致重定向循環 – Kevin
好吧,只是爲了解決這個問題:你真的想重定向輸入'http:// mysite.com/othersite'的人嗎?到他們瀏覽器的地址欄中輸入「http:// othersite.com」,然後從「http:// mysite.com/othersite」提供文件?或者,用戶只需要知道/輸入「othersite」(然後「祕密地」從mysite/othersite提供)? (如果你將人從A重定向到B,然後返回到A,當然會有循環!) – Kay