希望在多语言网站上使用hreflang。以下是场景:
最初,同一网站有3个版本(过时的,不符合SEO的,包括Flash )。我们将英文版本更新为一个全新的(SEO友好)网站,同时保留韩文和中文版本不变。
网站地图:
<url>
<loc>http://example.com</loc>
<xhtml:link
rel="alternate"
hreflang="zh"
href="http://example.com/cn"
/>
<xhtml:link
rel="alternate"
hreflang="ko"
href="http://example.com/kr"
/>
</url><link rel="alternate" hreflang="zh-us" href="http://example.com/cn"/>
<link rel="alternate" hreflang="ko-us" href="http://example.com/kr"/>我是否也需要在新的更新的英文版本中添加hreflang标签?国际版还有什么需要补充的吗?
非常感谢您的帮助!
发布于 2014-07-23 17:09:53
您不需要在站点地图和标题中都使用此代码。只能在一个地方使用它。我建议您将其从站点地图中删除。
此外,您还需要在所有页面上使用不同语言的所有语言版本的链接。例如,您应该将:
<link rel="alternate" hreflang="en" href="http://example.com/en" />
<link rel="alternate" hreflang="ko-us" href="http://example.com/kr" />
<link rel="alternate" hreflang="zh-us" href="http://example.com/cn" />或者,更好的是,您可以将英语设为默认值:
<link rel="alternate" hreflang="x-default" href="http://example.com/en" />
<link rel="alternate" hreflang="ko-us" href="http://example.com/kr" />
<link rel="alternate" hreflang="zh-us" href="http://example.com/cn" />有关参考信息,请查看此链接:https://support.google.com/webmasters/answer/189077?hl=en
https://stackoverflow.com/questions/24876373
复制相似问题