gpt4 book ai didi

seo - 谷歌 hreflang 用法

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:28:24 25 4
gpt4 key购买 nike

这看起来对吗? SEO 专家说这是这样做的方法,但出于某种原因我认为这可能是错误的,因为我们对不同的 hreflang 使用相同的 url

<link rel="alternate" hreflang='en-bn' href='http://www.xxx.com/gsa'/>
<link rel="alternate" hreflang='en-cn' href='http://www.xxx.com/gsa'/>
<link rel="alternate" hreflang='en-hk' href='http://www.xxx.com/gsa'/>
<link rel="alternate" hreflang='en-in' href='http://www.xxx.com/gsa'/>
<link rel="alternate" hreflang='en-id' href='http://www.xxx.com/gsa'/>
<link rel="alternate" hreflang='en-jp' href='http://www.xxx.com/gsa'/>
<link rel="alternate" hreflang='en-kr' href='http://www.xxx.com/gsa'/>
<link rel="alternate" hreflang='en-my' href='http://www.xxx.com/gsa'/>
<link rel="alternate" hreflang='en-pk' href='http://www.xxx.com/gsa'/>
<link rel="alternate" hreflang='en-ph' href='http://www.xxx.com/gsa'/>
<link rel="alternate" hreflang='en-sg' href='http://www.xxx.com/gsa'/>
<link rel="alternate" hreflang='en-lk' href='http://www.xxx.com/gsa'/>
<link rel="alternate" hreflang='en-tw' href='http://www.xxx.com/gsa'/>
<link rel="alternate" hreflang='en-th' href='http://www.xxx.com/gsa'/>

Google 会因此惩罚网站吗?

最佳答案

我想他们可能会。如果您看到 this post on the Google Webmaster Central Blog ,他们推荐如下内容:

<link rel="alternate" hreflang="es" href="http://www.example.com/" />
<link rel="alternate" hreflang="es-ES" href="http://es-es.example.com/" />
<link rel="alternate" hreflang="es-MX" href="http://es-mx.example.com/" />
<link rel="alternate" hreflang="en" href="http://en.example.com/" />

谷歌说:

If you specify a regional subtag, we’ll assume that you want to target that region. Keep in mind that all of these annotations are to be used on a per-URL basis. You should take care to use the specific URL, not the homepage, for both of these link elements.


此外,来自他们的 guidelines here ,

Have one URL associated with one piece of content. We recommend against using the same URL for multiple languages, such as serving both French and English versions on example.com/page.html based on user information (IP address, Accept-Language HTTP header). (Emphasis mine)

如果您没有根据语言/本地化将用户重定向到不同的网站,您可能会因此受到惩罚,正如 Google 明确建议的那样。

关于seo - 谷歌 hreflang 用法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13369739/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com