SEO
Hreflang Implementation Guide for Multi-Language Sites
By Kavin P · · 2 min read

If your business serves customers in more than one language or country, search engines need help deciding which version of a page to show to whom. Hreflang is the annotation that does this. It is simple in theory and surprisingly easy to get wrong.
What Hreflang Does
Hreflang tells search engines that several pages are alternates of each other for different languages or regions. For example, an English page for India, an English page for the UK and a Hindi page can be linked as a set. It helps show the right version to the right user. It does not boost rankings by itself. For the wider picture, read international SEO basics.
When You Need It
- The same content is translated into several languages.
- The same language is targeted at different countries with differences in pricing, currency or spelling.
- You run separate country folders, subdomains or domains.
If you have a single-language site for one country, skip it.
The Three Ways to Add It
- HTML head tags on each page. Good for smaller sites.
- HTTP headers, useful for non-HTML files such as PDFs.
- XML sitemap entries, easier to maintain at scale.
Pick one method and stay consistent rather than mixing them.
Rules That Must Be Followed
- Reciprocal links. If page A points to page B, page B must point back to page A. Missing return links are the most common error.
- Self-reference. Each page lists itself in the set.
- Valid codes. Use language codes (such as en or hi), optionally with a country code (such as en-in). Language comes first.
- Full URLs. Use absolute addresses, including the protocol.
- Canonical alignment. Each page should canonicalise to itself, not to another language version. See canonical tags explained.
- Optional x-default. Use it for a fallback page, such as a language selector.
Example Set (Hypothetical)
A Mumbai-based company has a site in English for India and Hindi. Each page would include a link for en-in, one for hi and an x-default pointing to the main English page. Both pages carry the identical set, each pointing to the other and to itself.
Common Errors
- Pointing to pages that redirect or return errors.
- Using country codes alone without a language.
- Translating only part of a page and expecting it to count as a separate version.
- Forgetting to update the set when a page is added or removed.
How to Test
Crawl the site with an SEO crawler that reports hreflang issues, and check Search Console for international targeting messages. Spot-check a few pages by viewing the source.
Frequently asked questions
Does hreflang improve rankings?
No. It helps the correct language or regional version appear, which can improve user experience and engagement.
Can I use hreflang with different domains?
Yes. The set can span subdomains, folders or separate domains as long as the annotations are reciprocal.
What if I only translate my homepage?
Add hreflang only between pages that are true equivalents. Pages without a counterpart should not be included in a set.
Related articles

SEO7 min read
Duplicate Content SEO: Find It, Fix It, Prevent It
Duplicate content SEO explained: what counts as duplication, common causes, how to find it and the right fixes, from canonical tags to redirects.

SEO7 min read
Ecommerce Category Page SEO: Rank and Convert Better
A practical guide to ecommerce category page SEO: keyword mapping, page copy, filters, internal links, structured data and metrics that show what works.

SEO7 min read
Featured Snippets Guide: Win Position Zero Responsibly
A featured snippets guide covering paragraph, list and table formats, how to find opportunities, how to write snippet-ready answers and how to measure the effect.
