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

Using alternate+hreflang to link to pages with different content (e.g., Guardian’s country-specific editions)?

· 52CE 我爱测

On the Guardian.co.uk homepage they have: <link rel="alternate" href="https://www.theguardian.com/uk" hreflang="en-GB"/> <link rel="alternate" href="https://www.theguardian.com/us" hreflang="en-US"/> <link rel="alternate" href="h…

问题原文

原帖链接 · mat boy · CC BY-SA 3.0

On the Guardian.co.uk homepage they have:

<link rel="alternate" href="https://www.theguardian.com/uk" hreflang="en-GB"/>
<link rel="alternate" href="https://www.theguardian.com/us" hreflang="en-US"/>
<link rel="alternate" href="https://www.theguardian.com/au" hreflang="en-AU"/>

Each page displays different content. UK, US and AU show stories related to each country. Shouldn't the hreflang attribute show the same page with the same stories however those stories should be translated accordingly into the correct language? (Not the best example as UK, US and AU are similar) but strictly speaking, shouldn't it show the same content with the language changed?

已采纳解答

原帖链接 · unor · CC BY-SA 3.0

Yes, this doesn’t seem to be correct.

HTML defines that alternate+hreflang is for translations:

If the alternate keyword is used with the hreflang attribute, and that attribute’s value differs from the root element’s language, it indicates that the referenced document is a translation.

To be clear, the problem is not that the hreflang attribute is used (it’s correct to use it for such links), the problem is that the alternate link type is used in addition.


Search engines might of course have their own guidelines that don’t necessarily comply with the HTML specification. So authors might decide to ignore the HTML spec.

One of the three cases where Google recommends alternate+hreflang is:

Your content has small regional variations with similar content in a single language. For example, you might have English-language content targeted to the US, GB, and Ireland.

They don’t go into more detail about this case, so it’s not clear how exactly they understand "variations" and "similar", but I think cases like Guardian’s different editions are certainly not "small" variations.

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

资料来源与适用范围

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

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

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