再见“首选域”设置
2019 年 6 月 18 日,星期二
在迁移到新版 Search Console 的过程中,我们将告别我们的某一项设置:首选域。
网站在多个网址上提供相同内容的情况很常见。例如,它在 https://example.com/
上和 https://www.example.com/index.html
上可能具有相同的内容。为了方便起见,当我们的系统识别出这种情况时,会选择一个网址作为 Google 搜索的“规范网址”。如果您希望我们挑选特定网址,您仍然可以通过多种方式告诉我们您的偏好(请参阅以下段落)。不过,如果您没有偏好,我们会选择所找到的最佳选项。请注意,弃用后,我们将不再使用任何现有的 Search Console 首选域配置。
您可在合并重复网址帮助中心文章中找到有关如何告知我们偏好设置的详细说明。以下是您可以使用的一些选项:
-
在 HTML 网页上使用
rel="canonical"
链接标记
-
使用
rel="canonical"
HTTP 标头
-
使用站点地图
-
对已停用的网址使用
301
重定向
欢迎通过 Twitter 或我们的论坛向我们发送任何反馈。
发布者:Daniel Waisberg,搜索技术推广工程师
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
[null,null,[],[[["Google Search Console is retiring the preferred domain setting as part of its migration to a new experience."],["Google will automatically select a canonical URL for websites with duplicate content on multiple URLs, but webmasters can still indicate their preference using methods like rel=\"canonical\", sitemaps, or 301 redirects."],["Existing preferred domain configurations in Search Console will no longer be used after this change."],["Detailed information about managing canonical URLs can be found in the \"Consolidate duplicate URLs\" help center article."],["Feedback on this change is welcomed through Twitter or the Google Search Console forum."]]],["The \"preferred domain\" setting in the Search Console is being removed. Websites with duplicate content on multiple URLs will have one URL chosen as the \"canonical\" for search. Users can still indicate their preferred URL using `rel=\"canonical\"` link tags or HTTP headers, sitemaps, or `301` redirects. If no preference is indicated, the system will automatically select the best option. The change means any current preferred domain configurations will be ignored. Feedback can be submitted through Twitter or the forum.\n"]]