大网数据广告活动
网站运营与故障问答

What does Google do with multiple canonical links on one page?

· 52CE 我爱测

Facing a weird issue. Something in the latest Magento 1.x update caused a few pages on our site to have 2 canonical links. Seems to just be pagination pages include both the unpaginated url and the paginated url. Does Google just…

问题原文

原帖链接 · Octoxan · CC BY-SA 4.0

Facing a weird issue. Something in the latest Magento 1.x update caused a few pages on our site to have 2 canonical links. Seems to just be pagination pages include both the unpaginated url and the paginated url.

Does Google just ignore the first link, ignore the second link, or ignore both links?

已采纳解答

原帖链接 · Stephen Ostermiller · CC BY-SA 4.0

If you specify multiple canonical tags, Google will ignore all the canonical tags.

Having multiple canonical tags would be a reason that Google would choose to ignore canonical tags. Google also chooses to ignore canonical tags in other cases where they are malformed:

  • All the tags point to the home page
  • The tags are implemented in the <body> rather than the <head>
  • The tags use relative rather than absolute links
  • The canonical page does not appear to be a duplicate page.

Google only sees canonical tags as a "strong hint" that one page is your preferred page. When Google finds a canonical tag it often chooses to ignore it. Google now has the concepts of "user chosen canonical" and "Google chosen canonical" that it shows you in Google search console.

Google also seems to be ignoring canonical tags for other unknown reasons recently. I've seen cases where Google chooses to index http:// pages even when all the canonical point to the https:// versions. It seems to take Google as much as a year to "trust" the user chosen canonical version enough to index it over the version that Google already has indexed.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2018-12-10)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。