Definition
Hreflang is an HTML attribute that tells search engines which language and regional version of a page to show users in different countries — preventing duplicate content issues across multilingual sites.
Detailed Explanation
<link rel="alternate" hreflang="en-np" href="https://example.com/en-np/page/" />
<link rel="alternate" hreflang="ne-np" href="https://example.com/ne-np/page/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/page/" />
Use ISO 639-1 language codes and ISO 3166-1 region codes. Every hreflang set must be bidirectional — if page A references B, B must reference A. Include x-default for fallback.
Implement via HTML <head>, HTTP headers, or XML sitemap.
Nepal Context
Sites planning Nepali-language content alongside English should implement hreflang before launch — not after both versions are indexed. Common pattern: en-np for English (Nepal audience), ne-np for Nepali, x-default to English.
Practical Examples
- English + Nepali blog posts — paired hreflang on both URLs.
- Same language, different regions:
en-usvsen-gbfor global SaaS content. - Validate with Google Search Console International Targeting report.
Key Takeaways
- Hreflang = language/region targeting signal, not ranking guarantee.
- Must be reciprocal between all alternates.
-
x-defaultcatches unmatched users.
Common Mistakes
- One-way hreflang — Google ignores non-reciprocal tags.
-
Wrong language codes —
npis country (Nepal), not language; usenefor Nepali. - Hreflang to redirected URLs — must point to 200 OK final URLs.

