问题原文
原帖链接 · James Spittal · CC BY-SA 4.0
I remember reading ages ago that it's a good idea to choose either www.example.com or domainexamplecom as your main URL and then set the other one as a 301 redirect to point to your domain?
The reason provided was:
- Some people may link to
www.example.com - Other links may point to
example.com
In order to not lose 'SEO link juice', the individual recommended setting up a 301 redirect from one to the other.
Has this changed? Is it true? I would have guessed that Google (and other search engines) would be smart enough to whack some code in their algorithm to understand that in most cases www.example.com = example.com?
已采纳解答
原帖链接 · Zistoloen · CC BY-SA 3.0
The main reason to redirect no-www to www (or the contrary) is to avoid duplicate content issues and not to avoid losing link juice. If you don't apply a 301 redirect, Google is going to index both versions of your website and will identify duplicate content (bad for SEO for sure).
Moreover, you can choose 301 redirect instead of rel="canonical" to avoid to lose link juice but just few of webmasters or users will be wrong on putting your URL on their websites.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
