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

Self-referential hreflang attributes for single language website?

· 52CE 我爱测

I've been told by an SEO company to add a hreflang attribute to every page on a single-language website (ie. 'self-referential' tags), but everything I've read about the hreflang tag, including Google's take , suggests that it's …

问题原文

原帖链接 · Django Reinhardt · CC BY-SA 3.0

I've been told by an SEO company to add a hreflang attribute to every page on a single-language website (ie. 'self-referential' tags), but everything I've read about the hreflang tag, including Google's take, suggests that it's only really useful for multi-language websites. Adding this would be a huge amount of work for this particular site, and I really can't see the potential benefits (or even any indication that such a thing is considered best practice by anyone).

This Google Webmaster blogpost does recommend using self-referential hreflang attributes, but only in relation to multiple-language websites.

"If you have multiple language versions of a URL, each language page must identify all language versions, including itself. For example, if your site provides content in French, English, and Spanish, the Spanish version must include a rel="alternate" hreflang="x" link for itself in addition to links to the French and English versions. Similarly, the English and French versions must each include the same references to the French, English, and Spanish versions."

Is there any SEO benefit to adding such a tag to a single language website?

E.g. Just a single instance, like:

<link hreflang="en" href="http://www.example.com" rel="alternate">

...to the document <head>?

(Please note that this is in addition to the obligatory lang="en" attribute in the <html> element.)

已采纳解答

原帖链接 · Roie Speiser · CC BY-SA 3.0

There is no benefit in using the hreflang on a single language website, it is meant exclusively for multilingual and international websites. I am not suggesting that Google (or other search engines) would penalize you for it, but they would definitely not reward you.

You can see a proper implementation of the hreflang tag over at trip advisor - a well respected multilingual and global brand (which includes both country and language targeting) below and you should read the following article and associated official Google Video publised a few days ago:

http://www.seroundtable.com/googles-international-targeting-webmaster-tools-18782.html https://www.youtube.com/watch?v=z51qbs7wLx8&feature=youtu.be&t=22m40s

Bottom line: Do not add the tag to single language website

The sampled Trip Advisor code (where en-GB is targeting English in the UK and en-CA targeting English speakers in Canada) :

<link rel="alternate" hreflang="en" href="http://www.tripadvisor.com/"/>
<link rel="alternate" hreflang="en-GB" href="http://www.tripadvisor.co.uk/"/>
<link rel="alternate" hreflang="en-CA" href="http://www.tripadvisor.ca/"/>
<link rel="alternate" hreflang="it" href="http://www.tripadvisor.it/"/>
<link rel="alternate" hreflang="es" href="http://www.tripadvisor.es/"/>
<link rel="alternate" hreflang="de" href="http://www.tripadvisor.de/"/>
<link rel="alternate" hreflang="fr" href="http://www.tripadvisor.fr/"/>

BTW - Google does not need the lang element as well, it reads a site's language just fine. If you want to target a specific English speaking country (for example), set your preferred country in Google webmaster tools. The lang element is a W3C recommendation and not Google's - they can associate a site with a proper language for quite sometime now:

http://googlewebmastercentral.blogspot.co.il/2010/03/working-with-multilingual-websites.html

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

资料来源与适用范围

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

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

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