Skip to content
Nazmul Nikhil
Menu

X-Default Hreflang Annotation Missing (Ahrefs): Add a Fallback Page

Ahrefs flags hreflang sets with no x-default. It tells search engines which page to show visitors whose language you don't cover. Here's how to add it.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
X-Default Hreflang Annotation Missing (Ahrefs): Add a Fallback Page
Photo: Kyle Glenn on Unsplash

In short

Ahrefs flags "X-default hreflang annotation missing" when an hreflang set has no x-default value. Google recommends x-default to name the page for users whose language doesn't match any version, often a language selector or your main English page. It's optional, so this is a low-priority improvement, but it's a single line per set.

Hreflang covers the languages you have. x-default covers everyone else.

Example

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

Here, a French or Spanish visitor would be shown the English page.

What should x-default point to?

Setup x-default
A main language most visitors understand That language's page (often English)
A language or country selector page The selector
A home page that adapts to the visitor That home page

Add x-default to every page in the set, with the same value, just like the other annotations.

WordPress: WPML and Polylang can output x-default; check the plugin's SEO or language settings.

Shopify: Shopify adds x-default for multi-language stores.

Webflow and Wix: both add x-default with their localization features, usually pointing to the primary language.

Custom builds: add one extra line to your hreflang template.

This guide isn't affiliated with or endorsed by Ahrefs.

Sources and references

TAGSAhrefs Site AuditX-default hreflangHreflang x-default missingWhat is x-default
Nazmul Nikhil

About the author

Nazmul Nikhil

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.

Need help with this?

Get it fixed with International SEO

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Site Audit Issues posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com