What hreflang does
Hreflang tags tell search engines which version of a page to show to which language or country, for example English for the UK, English for the US, and Arabic for Saudi Arabia. Without them, the wrong version can rank, or the versions can compete with each other.
The rules that matter
- Every version lists every version, including itself.
- Links must be reciprocal. If page A points to page B, page B must point back to A.
- Use valid codes: a language (en, ar), optionally followed by a region (en-gb, ar-sa). The region alone is not valid.
- Add x-default for visitors who match no version.
- Point only to canonical, indexable URLs.
| Example | Valid? | Why |
|---|---|---|
| en-gb | Yes | English for the United Kingdom |
| ar-ae | Yes | Arabic for the UAE |
| uk | No | 'uk' is Ukrainian, not the United Kingdom |
| en-uk | No | The country code for the UK is GB |
Read more in my international SEO guide and Arabic SEO guide.