Enter a page URL. We read its canonical and hreflang tags, check every language code, and open the other language versions to make sure they link back.
Canonical tags in plain English
A canonical tag says "this is the main address of this page". It matters when the same content can be reached in several ways: with tracking codes, with and without www, or as a printer version. Search engines then show the canonical URL and combine the signals.
A canonical must point to a page that loads with status 200, is not redirected and is not noindex. Most pages should simply point to themselves.
Hreflang in plain English
Hreflang tells search engines that a page exists in other languages or for other countries, so a visitor in Germany sees your German page and a visitor in the UK sees the en-GB one.
- Codes: a language from ISO 639-1 (
en,de,pt), optionally a country from ISO 3166-1 (en-GB,pt-BR). The UK isGB, notUK. Use a hyphen, not an underscore. - Every version lists every version, including itself.
- Return links: if the English page points to the German one, the German page must point back. Otherwise Google ignores the pair.
- x-default is the fallback for everyone else.
- Only put hreflang on canonical pages, and point it at final URLs (no redirects).
<link rel="alternate" hreflang="en" href="https://example.com/en/">
<link rel="alternate" hreflang="de" href="https://example.com/de/">
<link rel="alternate" hreflang="x-default" href="https://example.com/">
In WordPress, multilingual plugins such as WPML and Polylang add these tags for you. Problems usually come from untranslated pages or a translation linked to the wrong original.
FAQ
Do I need hreflang for a site in one language?
No. Hreflang is only for sites that have the same content in several languages or for several countries.
Is it en-UK or en-GB?
en-GB. Hreflang uses ISO 3166-1 country codes, and the United Kingdom's code is GB.
Can hreflang go in the sitemap instead?
Yes. Google accepts hreflang in HTML, in HTTP Link headers or in the XML sitemap. Use one method, not a mix.
Should every page have a canonical tag?
It is good practice. Most pages should point to themselves; WordPress adds this automatically.