NewFirst month of Starter or Pro for $1Your first month of Starter or Pro for just $1, then cancel anytimeSee pricing
Ranken logoRanken.io

What is hreflang?

hreflang is an attribute that tells search engines which language or regional version of a page to show each user.

Technical SEO

How it works and why it matters

Each version links to all the others, plus an x-default for everyone else. The links must be reciprocal, or search engines ignore them.

A site in a single language does not need hreflang. It matters once you publish translated or regional versions of the same pages.

In the page head
<link rel="alternate" hreflang="fr" href="https://yoursite.com/fr/" />
<link rel="alternate" hreflang="x-default" href="https://yoursite.com/" />

How does Ranken help?

Every Ranken page declares its language and an x-default hreflang automatically.

Stop managing SEO by hand

Ranken builds schema, sitemaps, canonical URLs, llms.txt and indexing into every post, on your own domain or /blog.