我在自己的引擎上有几个多语言网站 - 所有内容和所有文章都被(由编辑)翻译成多种语言。因此,很容易通过Google Webmaster answer弄清楚<head>
元标记的外观,但仍然没有什么问题,也无法找出最佳方法。
我会具体说明我是如何做到的,并会问哪里有疑问——也许有人已经有了这方面的知识。
让我们考虑一下当我们有一种主要语言而其他语言很少的情况。此外,有些short links
可能看起来像https://domain/s/id
主要语言或https://domain/ua/s/id
其他语言。
元和规范链接
基本上,在 URL 中避免使用主要语言,我将其视为canonical
and x-default
,(但在 GWM 控制台中仍然出现错误,我在某些页面上没有反向链接):
<link rel="canonical" href="https://domain/section/item-id/">
<link rel="alternate" hreflang="en" href="https://domain/section/item-id/">
<link rel="alternate" hreflang="x-default" href="https://domain/section/item-id/">
<link rel="alternate" hreflang="uk" href="https://domain/ua/section/item-id/">
<link rel="alternate" hreflang="ru" href="https://domain/ru/section/item-id/">
对于 RSS:
<link rel="alternate" hreflang="en" type="application/rss+xml" title="" href="https://domain/rss/">
<link rel="alternate" hreflang="uk" type="application/rss+xml" title="" href="https://domain/ua/rss/">
<link rel="alternate" hreflang="ru" type="application/rss+xml" title="" href="https://domain/ru/rss/">
RSS XML
在这里,我真的不确定某些东西,非常感谢专业人士的建议。所以,得到这样的元数据,而不是主要语言:
<guid isPermaLink="true">https://domain/section/item-id/</guid>
<link>https://domain/ua/section/item-id/</link>
<pubDate>Thu, 29 Oct 2015 11:15:00 +0200</pubDate>
那么,当我拥有所有这些元标记时,所有翻译都获得相同的 URL 是否正确?GUID
canonical
URL可以/应该是short link
?
短链接被共享到社交网络中,因此可能会增加计数。但是引擎会在访问时从短链接重定向到完整的 URL。
饲料
这对我来说有点奇怪,如果你知道如何处理这些部分,真的很感激:
- 帖子受欢迎程度的指标。我看到我的提要中的很多文章的数量与 Facebook 喜欢的数量相似。但对我来说它不起作用(Like 按钮设置为主要语言的短链接 -
canonical
一)。我已经在提要中尝试了短链接和完整链接,但无论如何都归零。 pubDate
被完全忽略,文章与 Feedly 第一次通过 RSS 获取它们的日期相同。
谢谢,非常感谢您的答案。