我目前正在鞏固職位上,我們最近收購了一家網站,有多種安裝WordPress的管理內容,一個在public_html
文件夾,另一個在子目錄中,像這樣:的.htaccess子目錄重寫異常
1. http://domain.com/
2. http://domain.com/another-install/
我們將所有的內容從/another-install/
到主設置,並使用301重定向從所有舊鏈接,像這樣刪除/another-install/
:重定向,像這樣
RedirectMatch 301 ^/another-install/(.*) http://domain.com/$1
所有文章在所得:
http://domain.com/another-install/article-name/
TO
http://domain.com/article-name/
問題是,我們想保留/another-install/
作爲一個頁面可見。使用當前的重定向,http://domain.com/another-install/
轉到http://domain.com/
。有什麼方法可以添加異常,或者重寫當前的規則以保持/another-install/
可見?
試了一下,並清除了要檢查的緩存。它現在將轉到「http:// domain.com/index.wml」而不是重定向到主頁,但它不顯示一個頁面(我在主安裝中創建了一個顯示)。有任何想法嗎? – thatsamore