Skip to content

hreflang

hreflang is a link attribute that tells search engines which language each version of a page is in and where the other language versions are, so searchers get the one in their language.

How Xodia sets hreflang: with Xodia Languages, every language of a page gets its own address, and each version links all the others with hreflang, in the page and in the sitemap.

Updated

On this page

What it is

A page in several languages has one address per language. Each version lists every version, itself included, with a link tag that has rel="alternate", the language in hreflang, such as es, and the page's address, and often an x-default for visitors whose language isn't covered. The links must agree both ways, or search engines may ignore them.

The same links can go in the sitemap instead of the page. Either way, hreflang tells search engines that the pages are translations of each other rather than copies, and which one to show to whom.

In Xodia

Xodia Languages gives every language its own page addresses, its language and direction tags, and hreflang links between the versions, right-to-left languages included. The sitemap lists each page in every language.

The links use the site address in Search engines settings, the same one Languages uses, so they point at the live site.

Read more

See every term in the glossary