好了,所以我有一个网站说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