【发布时间】:2011-11-28 21:46:29
【问题描述】:
我有一个网站,我在该网站上运行了woorank 报告。它报告的项目之一是:
www resolve Be careful! Your website without www doesn't redirect to www (or the opposite). It's duplicate content! Hide advice
High impactEasy to solve
Be sure that http://mysite.com and http://www.mysite.com are not running in parallel.
Redirecting requests from a non-preferred hostname is important because search engines consider URLs with and without "www" as two different websites.
Once your preferred domain is set, use a 301 redirect for all traffic to your non-preferred domain.
我在网上阅读了几篇文章,想知道在 asp.net 4 中有什么快速且简单的解决方案来解决这个问题。
谢谢。
【问题讨论】:
-
抱歉,我看不到这个问题的编程方面。对我来说,这似乎更像是一个webmasters 问题。投票迁移。
-
请参阅下面的答案。我认为这个问题会帮助不止一个人。