Understanding x-default hreflang and When to Use It
Questions:
- What is x-default in hreflang?
- Should x-default have a language prefix?
- Is x-default mandatory?
- Can x-default point to a language page?
Description:
The x-default hreflang attribute tells Google which page to show when no language or region matches the user. This article explains correct usage and common mistakes.
Solution:
- Choose a neutral or global version of the page
- Ensure the URL has no language prefix
- Add hreflang="x-default" in all language versions
- Verify consistency across HTML and sitemap
Tips and Tricks:
💡 Things to keep in mind
-
Never point x-default to /de/ or /en/
-
Best use case: language selector or global homepage
-
Incorrect x-default can invalidate the entire hreflang setup