RankWizrd
HomeFeaturesPricingNews
Log inGet Started
← Back to Blog
Technical SEODec 23, 2025·6 min read
Share:TwitterLinkedIn

International SEO: Reach Global Markets

Table of Contents

  • When You Need Hreflang
  • How Hreflang Works
  • Language vs. Country Codes
  • Self-Referential Hreflang
  • The x-default Tag
  • Implementation Methods
  • Domain Structure Options
  • hreflang Mistakes to Avoid
  • Geo-Targeting and Search Console
  • Content Translation
  • Testing hreflang
  • The Competitive Advantage

International SEO is complex, but getting it right lets you compete globally. Hreflang setup tells Google which version of your content is for which country/language. Without it, you have duplicate content issues across countries.

When You Need Hreflang

If you have content in multiple languages (English, Spanish, French) or multiple countries (US, UK, Canada), you need hreflang.

Want to see how your site stacks up?

Free SEO audit in under 60 seconds.

Check My SEO Score

You don't need hreflang if you only have content in one language for one country.

How Hreflang Works

Hreflang is a link tag in the HTML head that tells Google about alternate versions:

<!-- English (global) --> <link rel="alternate" hreflang="en" href="https://example.com/page" />

<!-- English (US) --> <link rel="alternate" hreflang="en-us" href="https://example.com/en-us/page" />

<!-- Spanish (Spain) --> <link rel="alternate" hreflang="es-es" href="https://example.es/page" />

<!-- Spanish (Mexico) --> <link rel="alternate" hreflang="es-mx" href="https://example.mx/page" />

<!-- Default/fallback --> <link rel="alternate" hreflang="x-default" href="https://example.com/page" />

Each version links to itself and all others.

Language vs. Country Codes

**Language codes** (en, es, fr) = "any English speaker"

**Country codes** (en-us, en-gb) = "English speakers in specific country"

Use language only (en) if you're targeting all English speakers globally. Use language-country (en-us) if you're targeting specific regions.

Self-Referential Hreflang

Each version should link to itself:

On https://example.com/page: <link rel="alternate" hreflang="en" href="https://example.com/page" />

On https://example.es/page: <link rel="alternate" hreflang="es" href="https://example.es/page" />

This tells Google "this is the correct version for this language."

The x-default Tag

Use hreflang x-default for a catch-all version that serves when no exact language match exists:

<link rel="alternate" hreflang="x-default" href="https://example.com/page" />

Usually your primary/English version.

Implementation Methods

**HTML head tags:** Add link tags to each page's head (most common).

**XML sitemap:** Specify hreflang in your sitemap: <url> <loc>https://example.com/page</loc> <xhtml:link rel="alternate" hreflang="en" href="https://example.com/page" /> <xhtml:link rel="alternate" hreflang="es" href="https://example.es/page" /> </url>

**HTTP headers:** For PDFs and images, specify hreflang in HTTP headers (advanced).

Domain Structure Options

**Subdomains:** en.example.com, es.example.com, fr.example.com

**Subdirectories:** example.com/en/, example.com/es/, example.com/fr/

**Country domains:** example.com, example.es, example.fr

**URL parameters:** example.com/page?lang=en (not recommended)

Each approach has pros/cons. Subdomains are clearest for Google. Subdirectories share more authority with root domain. Country domains are geographically clear but require separate setups.

hreflang Mistakes to Avoid

One-way hreflang. Each version must link to all others. If English links to Spanish but Spanish doesn't link back, Google gets confused.

Wrong language codes. Double-check language codes. en-us is correct. en_us is wrong.

Missing self-reference. Each version must link to itself.

Too many versions. If you have 50 language variations, simplify. Focus on major languages/markets.

Mixing with canonicals. Don't canonical to one version and hreflang to another. They conflict.

Geo-Targeting and Search Console

Set country targeting in Google Search Console. Tell Google whether your en-us version is for US users, global English speakers, or both.

This helps Google understand intent behind your site structure.

Content Translation

Hreflang doesn't translate content. It only tells Google about alternate versions. Your content must be actually translated (or at least significantly localized) for each version.

Don't use hreflang for auto-translated content. Google can tell and will penalize low-quality translations.

Testing hreflang

Use Google's URL Inspection tool in Search Console. Check whether Google sees your hreflang correctly.

Use the hreflang validator tool to check syntax and completeness.

The Competitive Advantage

Many sites ignore international SEO. Proper hreflang setup lets you rank in multiple countries/languages with less competition.

If no competitors in Spanish are optimizing properly, you have a huge opportunity.

RankWizrd checks your hreflang implementation and identifies issues or missing setup across country/language variants.

R

RankWizrd Team

SEO insights and AI search strategies to help you grow.

Check your site's SEO score

Free audit in under 60 seconds. No credit card required.

Audit My Site Free →

Related Articles

Technical SEO6 min read

Core Web Vitals: What Moved in 2026

Google's Core Web Vitals ranking factors evolved in 2026. Here's what changed and why your LCP, INP, and CLS scores matter more than ever.

Oct 19, 2025

Technical SEO6 min read

Schema Markup Guide: JSON-LD for SEO

Structured data (schema markup) helps search engines understand your content. Here's the complete guide to implementing JSON-LD correctly.

Oct 22, 2025

Technical SEO5 min read

Mobile-First Indexing: What It Means for Your SEO

Google indexes the mobile version of your site first. If your mobile experience is poor, your rankings suffer, no matter how good your desktop site is.

Oct 26, 2025

RankWizrd

Search visibility platform for the AI era.

Product

FeaturesPricingBlog

Free Tools

Content OptimizerSchema GeneratorSERP Simulator

Legal

PrivacyTerms
© 2026 RankWizrd. All rights reserved.