我应该删除含有 WWW 的网站记录吗?
我目前在 google 和 yahoo siteexplorer 等中列出了我网站的两个网址,索引的页面存在一些差异。
我是否需要两者,或者我可以删除以 www 开头的那个,然后让它使用新的 url 查找所有页面吗?我已经在谷歌中设置了我的首选域,但在雅虎中找不到方法。
这是否会影响他们对我的网站进行索引的方式,或者只是为了让我可以访问统计数据等?
我的 .htaccess 已设置为删除 www 无论如何。
任何建议都非常感激。
I currently have both urls of my site listed in google and yahoo siteexplorer etc, there is some difference in the pages that are indexed.
Do I need both, or can I delete the one with the www at the start and then let it find all pages using the new url? I have already set my preferred domain in google but can not see a way to do it in yahoo.
Does this even make a diff to how they will index my site, or is it just so I can access stats etc?
My .htaccess is all set up to remove the www anyways.
Any advice greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您使用 URL 重写将 www-URL 重写为非 www-URL,则不需要将其删除。然后,搜索引擎应该只列出非 www-URL。
http://www.codinghorror.com /blog/2007/02/url-rewriting-to-prevent-duplicate-urls.html
If you use URL rewrite to rewrite your www-URL to your non-www-URL you shouldn't need to delete it. Then, the search engines should only list the non-www-URLs.
http://www.codinghorror.com/blog/2007/02/url-rewriting-to-prevent-duplicate-urls.html
如果是我,我会配置 Apache 发送 301 消息,告诉客户端移至一个或另一个主机名。
任一主机名都可以,只需选择一个并保留它即可。这样,Google 的页面排名就会知道将其数据库合并到一个条目,并且当每个人将您的 URL 剪切粘贴给他们的朋友时,您可以很容易地进行标准化,从而增强您网站的外部链接。
If it were me, I'd configure Apache to send 301 messages back telling clients to move to one or the other hostname.
Either hostname is fine, just pick one, and make it stick. That way, Google's page-rank will know to coalesce its databases to just the one entry, and you'll strengthen external links into your site by making it very easy for everyone to standardize when they cut-n-paste your URLs to their friends.