好了,所以我有一個網站說oldwebsite.com.au和一個新的網站說newwebsite.com.au重定向域名新域名保持聯繫
我需要重定向,並保持所有的鏈接從交通因此舊的網站。
所以我用它作爲重定向(下圖)。唯一的問題是我有幾個頁面的URL結構已經改變,我需要添加這些被分開重定向我試圖在整個網站重定向之前添加重定向,但它似乎沒有工作任何幫助將大大讚賞。
#Redirects for individual url that changed. (Not working)
Redirect 301 /about-us.php https://newwebsite.com.au/about-us/
Redirect 301 /category/old-page https://newwebsite.com.au/new-page/
#Redirects for the whole site.
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !=old.oldwebsite.com.au
RewriteCond %{HTTP_HOST} !^newwebsite\.com.au
RewriteRule (.*) https://newwebsite.com.au/$1 [R=301,L]
注:個別URL重定向工作,如果我刪除整個網站重定向... 注:林腐也重定向子域名old.oldwebsite.com.au
哪個網址沒有被重定向到新網站? – anubhava 2014-08-28 07:41:38
重定向301 /about-us.php https://newwebsite.com.au/about-us/ 重定向301 /類別/舊頁面https://newwebsite.com.au/new-page/ – STiTCHiCKED 2014-08-28 08:28:27