href lang

A cosa serve hreflang?

Seo main factors

Invalid hreflang

Users navigate on the Internet with a default language and region: websites show to every user their pages in a different way, according to these two parameters.

How do the search engines figure out what version (based on language or region) to show to the user?

They do thanks to the hreflang links, which give to the search engines the URLs of all the versions of a specific web page.


How the SeoChecker hreflang audit fails

When the hreflang links have something wrong, SeoChecker displays an error:


hreflang links are searched by SeoChecker in the head and in response headers of the page to scan.

Next step for SeoChecker is to examine if the hreflang links have valid language codes: if they haven't, SeoChecker will notify it.

N.B. Region codes and sitemaps will not be examined by SeoChecker.

How can I delineate the different versions of a page with an hreflang link for each one?

Let's take for instance a page that has some different versions:

You can choose between three methods to make them equal for search engines:

  • Adding link headers to your HTTP response:
Link: <>; rel="alternate"; hreflang="en", <>; rel="alternate"; hreflang="it", <>; rel="alternate"; hreflang="fr" <>; rel="alternate"; hreflang="de", <>; rel="alternate"; hreflang="es"
  • Updating the sitemap giving details of language version:
<xhtml:link rel="alternate" hreflang="it"
<xhtml:link rel="alternate" hreflang="fr"
<xhtml:link rel="alternate" hreflang="de"
<xhtml:link rel="alternate" hreflang="es"
  • To the head of every page you need, add hreflang links:
<link rel="alternate" hreflang="en" 
href="" />
<link rel="alternate" hreflang="it" href="" />
<link rel="alternate" hreflang="fr" href="" />
<link rel="alternate" hreflang="de" href="" />
<link rel="alternate" hreflang="es" href="" />

Condividi questa Guida.

Ti è piaciuta? Condividila!

Share it!

Web tools per sviluppatori moderni. Provali!

Generatori, builder e validatori per migliorare le tue performance di ottimizzazione SEO e web

Home Back to top of the page