Hreflang

Submit your details and request your SEO Audit 

SEO Glossary: Technical SEO

Hreflang illustration: a globe with language versions of a web page linked to each other

If your website has versions in more than one language, or for more than one country, hreflang tells Google which version to show to whom. If it does not, you can safely skip it.

What hreflang is

Hreflang is an attribute that tells search engines about alternate versions of a page for different languages or regions. Each version lists all the others, including itself, with a code such as en-za for English in South Africa, af-za for Afrikaans in South Africa or en-gb for English in the United Kingdom. Google uses these signals to show the most suitable version in results, rather than treating the pages as duplicates.

Does your business need it?

Most South African small businesses run one English site for one country, and for them hreflang adds nothing. It becomes useful when you publish the same content in more than one language, such as English and Afrikaans or isiZulu versions of key pages, or when you run separate versions for South Africa and other markets, for example a .co.za site and pages aimed at Namibia or the UK with different prices or contact details.

How hreflang works

Language and optional region codes

The language code comes first, in ISO 639-1 format, and an optional region code in ISO 3166-1 format follows. Using a region alone, such as za, is not valid.

Return tags

Every version must link back to every other version. If page A lists page B but B does not list A, Google may ignore the pair.

x-default

A fallback version for users who match none of the listed languages or regions, often a language picker or the main English page.

Where to put it

In the page head, in HTTP headers for files, or in the XML sitemap. Pick one method and use it consistently.

Infographic of hreflang tags for English and Afrikaans South African pages with x-default explained

Common hreflang mistakes

  • Missing return tags between versions.
  • Invalid codes, such as en-uk instead of en-gb.
  • Pointing hreflang at redirected, noindexed or non canonical URLs.
  • Using hreflang on pages that are not real translations or regional variants.
  • Relying on automatic translation that produces thin content.

How to check it

Crawl your site with a tool that validates hreflang and reports missing return tags and invalid codes. Use the URL Inspection tool to confirm the alternate versions are crawlable and indexed. Check that each version has a self referencing canonical and that translations are complete and useful, not machine output pasted in.

Alternatives for smaller sites

If you only want to show that you serve South Africa, hreflang is not the tool for that. A .co.za domain, local phone numbers and addresses, prices in rand, a verified Google Business Profile and content written for South African searchers send clear regional signals without any extra markup.

How LSA helps

LSA a Local SEO Agency advises whether hreflang is worth it for your situation and, where it is, sets it up and validates it as part of our technical SEO services.

For the short definition, see Hreflang in our SEO Glossary, alongside the other technical SEO terms.

Want Google to see your site the way your customers do? Call LSA a Local SEO Agency on 068 786 7331 or contact us for a technical check.

Facebook
Twitter
LinkedIn