Common Hreflang Errors

Introduction

Hreflang errors are among the most common problems in international SEO and can have significant impacts on the visibility of your multilingual website. These errors often arise from incorrect implementation, missing return links, or inconsistent language/country codes.

The Most Common Hreflang Errors

1. Missing Return Links

Problem: A page references other language versions, but these do not reference back.

Example:

<!-- Page A references B and C -->
<link rel="alternate" hreflang="de" href="https://example.com/de/page" />
<link rel="alternate" hreflang="en" href="https://example.com/en/page" />

<!-- Page B only references A, not C -->
<link rel="alternate" hreflang="de" href="https://example.com/de/page" />
<link rel="alternate" hreflang="en" href="https://example.com/en/page" />

Solution: Each page must reference all other language versions.

2. Incorrect Language/Country Codes

Problem: Use of non-standardized or incorrect ISO codes.

Common Errors:

  • hreflang="german" instead of hreflang="de"
  • hreflang="english" instead of hreflang="en"
  • hreflang="de-DE" for Germany (correct)
  • hreflang="de-AT" for Austria (correct)

3. Missing x-default Directive

Problem: No default language defined for users who are not covered by specific country codes.

Correct Implementation:

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

4. Canonical Tag Conflicts

Problem: Hreflang tags reference URLs that do not match the canonical tags.

Example:

<!-- Canonical points to different URL -->
<link rel="canonical" href="https://example.com/en/page" />
<!-- Hreflang points to different URL -->
<link rel="alternate" hreflang="en" href="https://example.com/en/page/" />

5. Duplicate Hreflang Declarations

Problem: Multiple hreflang tags for the same language/country combination.

Incorrect:

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

6. Relative vs. Absolute URLs

Problem: Use of relative URLs in hreflang tags.

Incorrect:

<link rel="alternate" hreflang="de" href="/de/page" />

Correct:

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

7. Missing HTTPS Protocols

Problem: Mix of HTTP and HTTPS in hreflang tags.

Correct Implementation:

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

Hreflang Error Diagnosis

Error Detection Tools

  1. Google Search Console
    • International Targeting Report
    • Hreflang errors in Indexing
  2. Screaming Frog SEO Spider
    • Hreflang tab for detailed analysis
    • Identify missing return links
  3. Hreflang Testing Tools
    • Online validators for syntax checking
    • Automatic error detection

Common Implementation Errors

XML Sitemap vs. HTML Tags

Problem: Inconsistency between XML sitemap and HTML hreflang tags.

Solution: Both methods must contain identical information.

Missing Language/Country Mapping

Problem: No clear assignment between languages and countries.

Example Mapping:

  • de - German (general)
  • de-DE - Germany
  • de-AT - Austria
  • de-CH - Switzerland

Redirects in Hreflang

Problem: Hreflang tags reference URLs that lead to redirects.

Solution: Hreflang tags must reference the final URL.

Guidelines for Error Prevention

1. Planning and Structuring

  • Define clear language/country strategy
  • Establish URL structure for international pages
  • Create mapping between languages and countries

2. Correct Implementation

  • Use absolute URLs
  • Ensure HTTPS protocol
  • Consistent canonical tags

3. Testing and Testing

  • Implement automated tests
  • Regular checking of hreflang tags
  • Google Search Console monitoring

4. Monitoring and Maintenance

  • Continuous monitoring of errors
  • Automated alerts for new problems
  • Conduct regular audits

Frequently Asked Questions about Hreflang Errors

Question 1: How do I detect hreflang errors?

Answer: Use Google Search Console, Screaming Frog, or specialized hreflang testing tools.

Question 2: Are hreflang errors critical for SEO?

Answer: Yes, they can lead to missing indexing or incorrect language assignment.

Question 3: How do I fix missing return links?

Answer: Each page must reference all other language versions.

Question 4: Can I use hreflang tags in the XML sitemap?

Answer: Yes, but HTML tags are often easier to implement and maintain.

Question 5: What happens with incorrect language codes?

Answer: Google ignores the hreflang directives, leading to incorrect language assignment.

Monitoring and Maintenance

Automated Monitoring

  1. Google Search Console Alerts
    • International Targeting errors
    • Indexing problems
  2. Crawling Tools
    • Regular hreflang checks
    • Automated error reports
  3. Custom Monitoring
    • Custom scripts for hreflang validation
    • Integration into SEO workflows

Maintenance Routines

  • Daily: Check Google Search Console
  • Weekly: Validate hreflang tags on new pages
  • Monthly: Conduct complete hreflang Assessment