Hreflang Canonical Rules: How the Two Tags Work Together

Hreflang and canonical tags do different jobs, and the hreflang canonical setup only works if every translated page canonicalizes to itself.
The canonical tag tells Google: "This URL is the preferred version of this content." Hreflang tells Google: "These URLs are the same content in other languages." The German page's canonical should point at the German page, and its hreflang block should list every language version, including itself.
The mistake that breaks most multilingual sites is the cross-language canonical: every translation points its canonical at the English original. That tells Google the German page is a duplicate of the English one. Google may then index only the English URL, and the German page drops out of German results entirely. Fixing this single tag is often what makes a "translated but invisible" second market start appearing in search.
This article covers the exact rules Google documents for hreflang canonical setups, the most common errors and what causes them, before-and-after code examples, a full audit workflow using Search Console, and what recovery looks like in the data after you fix it.
What hreflang canonical tags each tell Google about your site
Canonical and hreflang solve different problems. Conflating them is the root cause of most multilingual indexing failures.
An hreflang canonical setup is the combination of two separate signals that must agree on every translated page. The canonical tag tells Google which URL is the preferred version of a piece of content. The hreflang tag tells Google which URL to serve users of a specific language or region. They work together only when each translated page self-canonicalizes.
rel="canonical" |
rel="alternate" hreflang |
|
|---|---|---|
| Question it answers | Which URL is the preferred version of this content? | Which URL should users of each language or region see? |
| Relationship between URLs | Duplicates or near-duplicates | Equivalent content, localized |
| On a translated page, should point to | The page itself | Every language version, including itself |
| Strength | A strong signal for canonicalization | A signal for which version to show; ignored if not reciprocal |
| What goes wrong | Points to another language and the page is folded away | Points to non-canonical URLs and the cluster is ignored |
Google's canonical documentation states the rule directly: "If you're using hreflang elements, make sure to specify a canonical page in the same language, or the best possible substitute language if a canonical page doesn't exist for the same language."
Google's localized versions guide adds the other half: "Localized versions of a page are only considered duplicates if the main content of the page remains untranslated." A properly translated page is not a duplicate, so it has no reason to canonicalize anywhere else.
One more thing worth knowing: Google does not always honour hreflang even when your tags are correct. If the content quality of a translated page is thin, Google may serve the stronger-language version regardless. The tags are a signal, not a command. Strong, fully translated content is the prerequisite; correct tag structure is what activates it.
For sites publishing in ten or more languages, manual verification of every page is not realistic. The hreflang sitemap approach gives you a single file where every URL and its canonical counterpart sit side by side, making discrepancies far easier to catch in bulk before they cost you a market.
Sites that run multilingual content through a CMS and a separate translation plugin face a specific risk: the two systems may each inject a canonical tag, and the last one wins. The canonical that reaches Google is whatever appears in the rendered HTML, not what either system shows in its own settings dashboard. Run a URL Inspection live test, not a CMS preview, to confirm what Google is actually reading.
The hreflang tags guide covers how to build the full cluster before you worry about canonicals. Get the cluster structure right first, then verify each URL self-canonicalizes. For context on how this fits into a full international setup, the international SEO strategy guide covers site structure, crawl budget, and market prioritization together.
For multilingual sites running on Shopify or WordPress, the multilingual SEO setup guide walks through platform-specific implementation so you know exactly which field controls which tag output.
For sites using server-side rendering or edge delivery, also check that your CDN or edge layer is not injecting a Link: <...>; rel="canonical" HTTP header that contradicts the HTML tag. Use curl -I https://yoursite.com/de/page to inspect raw response headers. If a header-level canonical appears and disagrees with the HTML, the CDN config needs updating first, before anything else.
The hreflang canonical cross-language mistake that kills translations
Pointing a translation's canonical at another language asks Google to drop the translation from that market entirely.
Here is what the broken hreflang canonical setup looks like on https://example.com/de/preise:
<link rel="canonical" href="https://example.com/en/pricing" />
<link rel="alternate" hreflang="en" href="https://example.com/en/pricing" />
<link rel="alternate" hreflang="de" href="https://example.com/de/preise" />
The two signals contradict each other. Hreflang says the German page is the version for German speakers. The canonical says the German page is a duplicate of the English page and shouldn't be indexed in its own right. Canonicalization determines which URL gets indexed. A non-indexed URL can't be served to anyone, so the German page usually loses.
The fixed version changes one line:
<link rel="canonical" href="https://example.com/de/preise" />
<link rel="alternate" hreflang="en" href="https://example.com/en/pricing" />
<link rel="alternate" hreflang="de" href="https://example.com/de/preise" />
This mistake almost always comes from a theme or plugin that sets the canonical to the "original" post, or from a translation workflow that copies the English page's <head> into the translated page without updating the self-referencing canonical. Check your template before you publish another translated article. A whole market can go dark from a single template setting.
This is also where hreflang in HTTP headers and sitemaps creates confusion. All three implementation methods (HTML, sitemap, HTTP header) must reference the same canonical URLs. If your sitemap lists /de/preise/ with a trailing slash but the HTML canonical uses /de/preise, crawlers flag a mismatch and the cluster may be ignored. Pick one canonical form and use it everywhere. For most sites, the HTML <link> element is easiest to audit because you can see it directly in the page source.
Sites managing content through a CDN edge layer face an extra risk: the CDN may inject a canonical HTTP header that overrides whatever the HTML says. If your HTML looks correct but Google keeps selecting the wrong canonical, check raw response headers with curl -I https://example.com/de/preise and look for a Link: <...>; rel="canonical" header before assuming the problem is in the template. If one appears and disagrees with your HTML tag, the CDN config needs updating, not the page.
Subdomain versus subdirectory structures follow the same rules. Whether your German content lives at de.example.com or example.com/de/, the canonical and hreflang logic is identical. The structural choice does affect how link equity and crawl budget flow through the site (subdirectories inherit root-domain authority; subdomains are treated more like separate sites), but neither canonical nor hreflang tag behaviour changes based on that structure.
What does recovery look like in Search Console?
After you fix a cross-language canonical, the change is not instant. Google needs to recrawl and reprocess the affected URLs. In Search Console, watch the Coverage report for the affected language directory (for example, /de/). Pages previously listed as "Duplicate without user-selected canonical" or "Alternate page with proper canonical tag" should move toward indexed status. Impressions for the affected market in the Performance report tend to follow two to six weeks after indexing recovers, not immediately.
If impressions stay flat after four weeks, check whether the pages are genuinely translated. Google treats pages whose body content is still in the original language as untranslated, regardless of the canonical fix. That is a content problem, not a tag problem, and no amount of tag work resolves it.
For a broader view of how canonical errors connect to market recovery, the international SEO strategy guide covers what to check at the site level after a tag fix.
Hreflang canonical rules every multilingual site must follow
Five rules cover almost every multilingual setup. All five apply regardless of whether you manage tags in HTML, a sitemap, or an HTTP header.
- Every translated page has a self-referencing canonical. Google recommends a self-referential canonical on all pages, translated or not. This is non-negotiable for any page you want indexed in its own market.
- Every hreflang URL is a canonical URL. Don't list parameter versions, uppercase variants,
httpURLs, or redirecting URLs in hreflang. Use the exact URL each page declares as its canonical. - The self-referencing hreflang URL equals the canonical URL, character for character, including trailing slash and protocol.
- Don't combine canonical and hreflang in one tag. Google ignores
rel="canonical"annotations that carryhreflang,lang,media, ortypeattributes. Keep them as separate<link>elements. - Use one canonical method per page. Declaring one canonical in the sitemap and a different one in the HTML creates conflicting signals. The hreflang sitemap approach gives you a single place to verify all URLs are consistent.
Google's managing multi-regional sites documentation notes that Google prefers, for canonicalization purposes, URLs that are part of correctly formed hreflang clusters. That is one more reason to make sure the URLs in your clusters are exactly the ones you want indexed.
If you run WordPress with a multilingual plugin such as WPML or Polylang, check the plugin's canonical output directly in the page source rather than trusting the plugin settings dashboard. Plugins can override each other, and the canonical that reaches Google is the one in the rendered HTML, not the one in your settings screen.
For sites using hreflang in an XML sitemap rather than HTML, each <loc> URL must match the canonical URL declared on that page exactly. A common sitemap error is including all regional variants using the xhtml:link extension, then having the HTML canonical on one of those pages point to a different URL. Google sees the conflict and may ignore the entire cluster.
Sites running a headless CMS or decoupled front-end introduce an additional layer: the rendering pipeline may produce a different canonical than what your CMS stores. Test the rendered output with a site crawl or the URL Inspection live test, not the CMS preview. What Google reads is the HTTP response, not what your dashboard shows.
For a wider view of how these rules connect to market strategy, the international SEO strategy guide covers the decisions that come before and after tag implementation. If you're building in multiple languages and want to understand how hreflang fits into the broader multilingual SEO picture, the multilingual SEO setup guide covers platform setup, translation quality requirements, and content structure together.
What about same-language regional pages?
Regional variants in one language are the one case where duplicates and hreflang overlap directly. The fix is to make the pages genuinely different, or consolidate them.
If you have en-US, en-GB, and en-AU pages with the same body text and only the currency symbol changed, Google may treat them as near-duplicates and pick one canonical among them. Google's guidance on managing multi-regional sites is clear: when you serve similar content on different URLs in the same language, pick a preferred version and use rel="canonical" together with hreflang so the correct regional URL reaches searchers.
Before and after: same-language regional pages
Broken setup (all three en variants pointing at en-US, with the same body text):
<!-- on /en-gb/pricing -->
<link rel="canonical" href="https://example.com/en-us/pricing" />
<link rel="alternate" hreflang="en-gb" href="https://example.com/en-gb/pricing" />
<link rel="alternate" hreflang="en-us" href="https://example.com/en-us/pricing" />
Fixed setup (each page self-canonicalizes, real local differences justify separate URLs):
<!-- on /en-gb/pricing -->
<link rel="canonical" href="https://example.com/en-gb/pricing" />
<link rel="alternate" hreflang="en-gb" href="https://example.com/en-gb/pricing" />
<link rel="alternate" hreflang="en-us" href="https://example.com/en-us/pricing" />
<link rel="alternate" hreflang="x-default" href="https://example.com/en-us/pricing" />
Local prices, tax rates, shipping options, delivery times, local regulations, and regional contact details all justify a separate URL. A currency symbol alone does not.
For most small sites: don't create regional English variants unless each one has real differences that matter to the buyer. If the only difference is a currency symbol, publish one English page, add a currency switcher in the UI, and put the effort into a real second language instead. One strong en page outperforms three thin regional ones that Google keeps collapsing.
When you do keep regional variants, each one still uses a self-referencing canonical, and all of them sit in one hreflang cluster with a generic x-default fallback pointing at your primary market URL. A missing x-default is one of the most common oversights on regional setups, and it leaves Google without a declared fallback for users whose language code doesn't match any variant.
For further guidance on structuring regional content, the hreflang tags guide covers the full cluster setup including x-default placement.
What I wish every multilingual site fixed first: common hreflang canonical mistakes
Most problems are contradictions between two tags set by different systems, often a CMS and a translation plugin that don't know about each other. These are the patterns that surface most often when a translated market goes dark.
- Cross-language canonicals. Translations pointing their canonical at the English original. Fix this first; it has the largest impact on indexing and is almost always a template default, not an intentional choice.
- Canonical to the home page or a category. Some themes set every page's canonical to the site root. Every translated article then claims to be a duplicate of the home page.
- Hreflang listing non-canonical URLs. The hreflang block uses
/de/preise/with a trailing slash; the self-referencing canonical uses/de/preise. Crawlers flag these as non-canonical return links and the cluster is ignored. - Noindex on translations. A translated page set to
noindexwhile under review, left that way for months, while its siblings still reference it in their hreflang blocks. The whole cluster degrades. - Canonical set by JavaScript after page load. Google recommends setting the canonical in the HTML source. A JavaScript-injected tag that differs from the static HTML creates conflicting signals and is unreliable in crawl.
- Moving URLs without updating either tag. During a site migration, redirects get set up but hreflang and canonicals still point at old URLs. The redirect chain masks the problem until rankings drop.
- Missing x-default. Leaving out the
x-defaultfallback means users who don't match any language code may land on the wrong version, and Google's selection logic loses its fallback anchor. - Mismatched protocol or subdomain. If the canonical uses
https://www.example.combut hreflang useshttps://example.com(nowww), those are different URLs to Google. Every URL across both tags must match on protocol, subdomain, path, and trailing slash.
All of these except the last two are template problems, not page-by-page problems. Fix the template and every page inherits the correction automatically. That single fact is what makes canonical errors so worth hunting down: one fix compounds across the whole site.
Sites that publish translated content at scale, say ten or more languages, rarely catch these in manual review. Run a crawl after every plugin update, not only after a migration. Translation plugin updates are a common trigger for canonical regressions because they often change how the <head> is rendered. Build that crawl into your release checklist the same way a developer builds a smoke test: it takes ten minutes and can save a market.
One pattern that surfaces repeatedly in WordPress communities using WPML or Polylang: a plugin update resets the canonical output method, so a site that was clean on Monday has cross-language canonicals by Friday. The only reliable catch is a post-update spot-check in page source, not the plugin dashboard. Reports on community forums consistently describe this happening after minor version bumps, not just major releases, so a quick check after any plugin update is worth building into your workflow.
If you are managing hreflang for an e-commerce site with product pages in multiple languages, the same rules apply at every URL. A product page canonicalizing to its English equivalent is invisible in every other market, regardless of how well the hreflang cluster is structured. The fix is the same: self-canonicalize every translated URL and confirm the canonical string matches the hreflang self-reference character for character.
For a broader look at how these errors fit into the full picture of technical setup across markets, the international SEO strategy guide covers site structure, crawl budget, and market prioritisation together. For sites managing hreflang at scale, the hreflang sitemap approach makes bulk auditing far more practical than page-by-page checks.
How do you audit hreflang and canonical tags?
Compare what you declared with what Google chose, one page at a time and then site-wide. The hreflang canonical audit has four layers, and you only need all four when something is still wrong after the first two.
Search Console URL Inspection shows the user-declared canonical and the Google-selected canonical for any URL. If the German page shows the English URL as Google-selected, you have either a cross-language canonical or content Google considers untranslated. Check the indexed version in Search Console, then run the Live Test after you fix the template to confirm the new canonical is being read correctly before you request reindexing.
Site-wide crawl with a tool that reports hreflang and canonicals side by side. Look for two things: translated pages whose canonical points to a different-language URL, and hreflang return links pointing at non-canonical URLs. Both appear as errors in most crawl reports. Fix the template, not each page individually. When you fix the template, resubmit the affected URLs through Search Console's URL Inspection tool rather than waiting for Googlebot to recrawl on its own schedule.
One audit pattern that surfaces problems quickly: sort your crawl output by canonical URL and look for any non-self-referencing canonical on a translated page. If the list is empty, your template is clean. If it isn't, every row on that list is a page potentially invisible in its target market.
Manual spot-check on one page per language after any template or plugin update. View the page source and search for canonical and hreflang in the <head>. Confirm the canonical URL matches the hreflang self-reference exactly, including protocol and trailing slash. This takes three minutes and catches plugin conflicts before they propagate.
HTTP header check matters if your server or CDN injects canonical headers. Run curl -I https://yoursite.com/de/page and look for a Link: header containing rel="canonical". A canonical HTTP header overrides the HTML element in some cases, so if your HTML looks correct but Google keeps selecting a different canonical, a header-level override is worth investigating before touching any template.
| Audit layer | What it catches | Time cost |
|---|---|---|
| Search Console URL Inspection | Google-selected vs. declared canonical, per URL | 2-5 min per URL |
| Site-wide crawl | Cross-language canonicals, non-canonical hreflang URLs, cluster completeness | 20-60 min depending on site size |
| Manual spot-check | Plugin conflicts after updates, trailing slash mismatches | 3 min per language |
| HTTP header check | CDN or server overrides on canonical | 1 min per URL |
What if the fix doesn't resolve the problem?
If you've corrected the canonical tag and Google is still selecting the wrong URL after four or more weeks, work through this sequence.
First, confirm the page body is fully translated. Google's localized versions documentation is explicit: untranslated body content makes a page a duplicate regardless of tag structure.
Second, check for thin content. A page with 150 words of translated text sitting beside an English original with 1,500 words will often lose the canonicalization signal even when the tags are correct. Content depth matters: pages that closely match the original in word count and informational value are far less likely to be folded.
Third, check crawl frequency. Low-authority sites may wait six to ten weeks for Googlebot to reprocess all affected URLs. Submit the corrected URLs individually through URL Inspection rather than relying on the sitemap crawl queue.
Fourth, look for a competing canonical signal. A CDN header, a JavaScript-injected tag, or a conflicting sitemap entry may be overwriting the HTML fix without appearing in a standard page-source check.
If all four layers check out and the problem persists, the issue is usually content quality in the target language, not tag mechanics.
If a whole market is missing from your impressions data, a broader audit is worth doing at the same time. Canonical errors rarely travel alone: hreflang cluster errors, missing x-default tags, and untranslated body content often appear together. The hreflang tags guide has a full pre-launch checklist once your canonical setup is clean. For sites running multilingual content at scale, the hreflang sitemap approach gives you a single file where every URL and its canonical counterpart sit side by side, making discrepancies easier to catch in bulk.
For sites managing content across many markets, also cross-reference your crawl output against your analytics data. A language directory with zero organic impressions in Search Console is a strong signal that every page in that directory has a canonical problem, even if spot-checks on individual pages look clean. Work top-down: fix the template, spot-check a sample, then submit the full directory for reindexing.
Frequently Asked Questions
Should a translated page canonicalize to the original language?
No. A translated page should have a self-referencing canonical. Google says localized pages are only duplicates if the main content is untranslated, and recommends specifying a canonical in the same language. Pointing a German page's canonical at the English page tells Google to index the English URL instead, which usually removes the German page from German results entirely.
Can I use hreflang and canonical tags on the same page?
Yes, and you should. Every page in a multilingual cluster carries a self-referencing canonical plus the full hreflang list, as separate <link> elements. Google ignores canonical annotations that include an hreflang attribute, so never combine them into one tag. The two tags must agree on the exact URL of the current page.
Should hreflang point to canonical URLs only?
Yes. Every URL in an hreflang annotation should be the canonical, indexable, 200-status version of that page. Listing parameter versions, redirecting URLs, or URLs that canonicalize elsewhere creates conflicting signals, and crawlers report these as non-canonical return links. Use the exact string each page declares in its own canonical tag.
Why does Google pick the English page as canonical for a German page?
Usually because the German page's canonical points to the English URL, or because the main content isn't actually translated (only the navigation and template are). Check the user-declared and Google-selected canonical in Search Console's URL Inspection tool. If the declared canonical is correct, check that the page body is fully in German, not machine-translated boilerplate.
Do regional pages in the same language need different canonicals?
Each regional page should self-canonicalize if it is meant to rank in its own market. If the pages are nearly identical, Google may still treat them as duplicates and choose one. Give each variant real local differences, such as prices, shipping details, and local contact information, or consolidate them into one page with a single canonical.
What is x-default and do I need it?
The x-default hreflang attribute marks the fallback URL for users who don't match any specific language or region code. Google uses it as a tiebreaker when no other language matches the user's browser settings. You don't strictly need it, but leaving it out means Google has no declared fallback and may serve the wrong version. Point it at your primary market URL or a language-selector page.
Does the hreflang canonical setup differ for subdomains versus subdirectories?
The rules are the same. Each URL, whether on de.example.com or example.com/de/, must self-canonicalize and appear as a canonical URL in the hreflang block. The structural choice between subdomain and subdirectory affects crawl budget and link equity differently, but the canonical and hreflang tag logic is identical either way.
The rule to remember
The hreflang canonical rule fits on one line: every translated page canonicalizes to itself, and every URL in hreflang is a canonical URL.
Fix cross-language canonicals first. They have the largest impact on indexing and almost always trace back to a template or plugin setting, not a page-by-page error. Fix the template once and every page inherits the correction.
Check the Google-selected canonical for one page per language after every template change. If it matches the user-declared canonical, your setup is working. If it doesn't, Search Console URL Inspection will show you exactly which signal Google chose instead.
Audit the full international SEO setup, including hreflang cluster completeness, x-default placement, and canonical consistency, before launching any new market. Getting the structure right on day one is significantly faster than diagnosing why a market disappeared six months after launch. The multilingual SEO setup guide covers what a clean launch checklist looks like across platforms.
For reference: the five rules that cover almost every setup are self-referencing canonicals on every translated page, canonical URLs in every hreflang annotation, exact character-for-character match between the two, separate <link> elements for each tag, and one canonical method per page. If your site passes all five, the tags are correct and any remaining indexing issue is a content quality problem.
If you are building a multilingual site and want the hreflang and canonical tags generated together so they cannot contradict each other, Agent Solo handles both as part of its publishing output. You can get early access and see how the tag structure looks before committing.
Not ready? Get the free checklist