9 Common Hreflang Errors (and How to Fix Them)

January 18, 2024

In this article, we go over the most common ones and show you how to fix hreflang tags with errors. Correct:English page:<link rel="canonical" href="https://example.com/en" /><link rel="alternate" hreflang="en" href="https://example.com/en" /><link rel="alternate" hreflang="es" href="https://example.com/es" /><link rel="alternate" hreflang="it" href="https://example.com/it" />Spanish page:<link rel="canonical" href="https://example.com/es" /><link rel="alternate" hreflang="es" href="https://example.com/es" /><link rel="alternate" hreflang="en" href="https://example.com/en" /><link rel="alternate" hreflang="it" href="https://example.com/it" />Italian page:<link rel="canonical" href="https://example.com/it" /><link rel="alternate" hreflang="it" href="https://example.com/it" /><link rel="alternate" hreflang="en" href="https://example.com/en" /><link rel="alternate" hreflang="es" href="https://example.com/es" />How to fix: Make sure each version of your webpage has a self-referencing canonical tag. Not Using Absolute URLsUsing relative URLs instead of absolute URLs in your hreflang tags can cause indexing issues and result in search engines misinterpreting your hreflang tags. Incorrect:<link rel="alternate" hreflang="en" href="/en/page-name" /><link rel="alternate" hreflang="en" href="/es/page-name" />Correct:<link rel="alternate" hreflang="en" href="https://example.com/en/page-name" /><link rel="alternate" hreflang="es" href="https://example.com/es/page-name" />How to fix: Always use the absolute URL in hreflang tags—including http/https. Fix Your Hreflang Errors with the Semrush Site Audit ToolYou can use Semrush’s Site Audit tool to uncover and fix hreflang errors on your website.

The source of this news is from Semrush