Hreflang

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen

Using hreflang statements, would be a method to solve the duplicate content problem when having multiple sites that target different audiences. Put hreflang statemetns in the header of a site.

Example

I'm not completely sure, but I think this would be a good example:

# 1. English
#
<link rel="alternate" href="https://example.us/"  hreflang="en-us" />
<link rel="alternate" href="https://example.es/"  hreflang="en-es" />
<link rel="alternate" href="https://example.mx/"  hreflang="en-mx" />

# 2. Spanish
#
<link rel="alternate" href="https://ejemplo.es/"  hreflang="es-es" />
<link rel="alternate" href="https://ejemplo.mx/"  hreflang="es-mx" />


# Defaults
#
<link rel="alternate" href="https://example.com/" hreflang="en" />
<link rel="alternate" href="https://ejemplo.es/"  hreflang="es" />
<link rel="alternate" href="https://example.com/" hreflang="x-default" />

Details:

  • This could be the hreflang-set for any of the sites that are mentioned in it: Sets should include self-references hence all sites within a set actually get the same statements
  • Google chooses the optimal fit. This would imply that a Spanish speaker in Mexico would be forwarded to ejemplo.mx, a Spanish speaker in Spain to ejemplo.es and a Spanish speaker in Sweden to ejemplo.es. It also implies that a German speaker in Germany would be forwarded to example.com, as there are no better fits
  • The trailing / is as on [1]

See also

Sources