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.
<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.
Related terms
- Canonical URLA canonical URL is the preferred address of a page when the same content is reachable at several URLs, declared with a rel="canonical" link tag.
- IndexingIndexing is when a search engine stores and understands a crawled page so it can show it in results. A crawled page is not always indexed.
- URL slugA URL slug is the readable last part of a URL that identifies a page, like how-to-start-a-blog in yoursite.com/blog/how-to-start-a-blog.
- XML sitemapAn XML sitemap is a file that lists a site's important URLs, with the date each one last changed, so search engines can find them.
Stop managing SEO by hand
Ranken builds schema, sitemaps, canonical URLs, llms.txt and indexing into every post, on your own domain or /blog.