|
Post by account_disabled on Dec 20, 2023 4:44:39 GMT
拥有多个 rel=canonical 标签 拥有多个 rel=canonical 标签通常会导致 Google 忽略它们。在许多情况下,发生这种情况是因为标签在不同的位置插入到系统中,例如通过 CMS、主题和插件。这就是为什么许多插件都有一个覆盖选项,以确保它们是规范标签的唯一来源。 另一个可能出现问题的领域是使用 JavaScript 添加规范。如果您没有在 HTML 响应中指定规范 URL,然后使用 JavaScript 添加 rel=canonical 标记,则 Google 呈现页面时应遵循该标记。但是,如果您在 HTML 中指定了规范,并将首选版本替换为 JavaScript,则您会向 Google 发送混合信号。 错误#9。Rel=<body> 中的规范 Rel=canonical 只能出现在文档的 <head> 中。页面 <body> 部分中的规范标记将被忽略。 这可能成为问题的地方是文档的解析。即使页面的源代码在正确 特殊数据 的位置具有 rel=canonical 标记,许多不同的事情(例如未闭合的标记、JavaScript 注入或 <head> 部分中的 <iframes>)也可能导致 <head> 过早结束,而渲染。在这些情况下,规范标签可能会意外地被放入所呈现页面的 <body> 中,而不会受到尊重。 最后的想法 SEO 用来处理规范化的许多工具已被取消,例如 Google Search Console 中的 URL 参数工具和首选域设置。然而,仍然有很多其他信号可以帮助谷歌选择规范。 如果您有疑问,请在 Twitter 上给我留言。 帕特里克·斯托克斯 文章作者 帕特里克·斯托克斯 Patrick Stox 是 Ahrefs 的产品顾问、技术 SEO 和品牌大使。他是 2021 年网络年鉴 SEO 章节的主要作者,也是 2022 年 SEO 章节的审稿人。他还与人合着了 Ahrefs 的《SEO 初学者书籍》,并且是《SEO 艺术》第四版的技术评论编辑。他是多个团体的组织者,包括罗利 SEO 聚会(美国最成功的 SEO 聚会)、啤酒和 SEO 聚会、罗利 SEO 会议,运营着一个技术 SEO Slack 小组,并且是 /r/TechSEO 的版主。红迪网。 并非您网站上的每个页面都会为您赢得反向链接。 这是链接建设 困难的众多原因之一。
|
|