问题原文
原帖链接 · Mivaweb · CC BY-SA 3.0
We are about the release a new version of a website for one of our clients.
His current website is on www.domain.be, the new domain with a complete different structure is located on www.newdomain.be
So now we need to redirect traffic for the old one to the new one.
Is it best practise to redirect everything to the home page on the new domain or do we need to redirect each page to the correct page on the new domain?
已采纳解答
原帖链接 · M-n-I SEO Guy · CC BY-SA 3.0
You will want to implement the following in the old domain's .htaccess file:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.newdomain\.be
RewriteRule (.*) http://www.newdomain.be/$1 [R=301,L]
And, since your file structure is changing on the new domain you will definitely want to permanently 301 redirect ALL of the old urls to the new corresponding url's. You will also want to do a change of address in Google Webmaster tools and submit your new sitemaps.
Here is a link to a page with more detailed information:
https://www.creare.co.uk/blog/seo-advice/how-to-301-to-a-new-domain
I hope this helps...
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
