Check 24.02 · Multilingual indexing and sitemaps

Do not canonicalize all translations to the main language

Find translations whose canonical points to the main language, trace the cause in the CMS or the code, fix it and get each language reindexed.

Priority
Critical
Difficulty
Intermediate
Estimated time
1 h to 1 day
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

A widespread mistake on multilingual sites is to point the canonical of every translation to the main-language page: /de/preise/ and /en/pricing/ declare /fr/tarifs/ as canonical. The site is then asking Google to keep only the French. The task is to detect this pattern, find its source (template, plugin, copied field, HTTP header) and fix it so that each translation points to itself.

Why it matters

The canonical is used to group duplicates and to designate which URL should be indexed. Pointing a translation to the original amounts to telling Google: “this German page is a copy of the French page”. Yet Google only considers language versions to be duplicates if their main content is in the same language. The signal is therefore wrong, but it is strong: the canonical is one of the signals Google weighs to choose the canonical URL.

What happens next:

  • Google may drop the translation from the index and classify it as “Alternate page with proper canonical tag” in the indexing report.
  • hreflang is contradicted: the annotations link pages that the canonical declares to be duplicates of a single one. Google recommends specifying a canonical in the same language when you use hreflang.
  • German users see the French page, or no page at all, for queries in German.
  • Generative engines that rely on search indexes do not find the German version and cite, at best, the French one. No practice guarantees a citation, but a page missing from the index cannot get one.

Google can sometimes ignore an obviously wrong canonical and index the translation anyway. Do not count on it: the result varies from page to page and you lose control.

This pattern is rarely the result of a decision. It comes from a canonical written in a shared template, a field copied by the translation tool, a translation proxy that leaves the source page's tag in place, or a “trick” to avoid supposed duplicate content between languages.

What it improves

  • Indexing Translations get their place back in the index, each one for its language.
  • International traffic Impressions and clicks on queries in the other languages, which were absorbed or lost.
  • hreflang consistency The annotations become usable by Google.
  • Clearer reports Search Console attributes performance to the canonical URL; the fix separates the data by language again.
  • Citations in AI answers An indirect, non-guaranteed effect.

How to check

On one page. Compare the canonical of each language:

for url in https://example.com/fr/tarifs/ https://example.com/de/preise/ https://example.com/en/pricing/; do
  printf '%s -> ' "$url"
  curl -s "$url" | grep -oiE '<link[^>]*rel="?canonical"?[^>]*>' | grep -oiE 'href="[^"]*"'
  curl -sI "$url" | grep -i '^link:.*canonical'
done

The problem is present if a /de/ or /en/ URL shows a /fr/ canonical, in the HTML or in a Link header.

Across the whole site. With Screaming Frog, crawl the site, then go to the Canonicals tab, “Canonicalised” filter. Export and add two columns: the URL's language and the canonical's language (the prefix is enough). Any row where they differ is a cross-language canonicalization. Without a paid tool, the free version of Screaming Frog (500 URLs) or a curl loop over the sitemap is enough for a sample.

In Search Console. Open the Page indexing report, reason “Alternate page with proper canonical tag”: a large number of URLs in a secondary language gives the problem away. For a translation, the URL Inspection tool shows the “User-declared canonical”; it must be the inspected URL.

How to implement

Before you start

Find the source before fixing anything: removing the tag in one place is pointless if another layer rewrites it.

Symptom Likely cause Where to look
Every page in every language points to the main home page Canonical written in the shared layout Header template, root layout
Each translation points to its source page Canonical built from the original's ID, or copied field Translation plugin, SEO field
The HTML is correct, but a Link header points to the main language Server or CDN rule Apache, Nginx, CDN configuration
Only a few translations are affected Canonical entered by hand, then duplicated “Canonical URL” field of those pages
Translations served by a proxy carry the source page's tag Translation proxy that does not rewrite the tag Translation service settings

Target: each actual translation declares its own URL, as described in use a self-referencing canonical for each actual translation (opens in a new tab). The only exception is a page whose body is not translated. For that one, the right treatment is not to publish it as a translation (see plan for missing translations (opens in a new tab)).

Warning: do not replace the cross-language canonical with a noindex on the translations. The problem is not that the translations exist; it is that they declare themselves copies of another language.

Apache

Versions Apache 2.4.10 and later (expr= syntax of the Header directive).

Look for a rule that sends a fixed Link header:

grep -rn -i "rel=.\?canonical" /etc/apache2/ /var/www/example/.htaccess 2>/dev/null

A line such as Header set Link "<https://example.com/fr/…>; rel=\"canonical\"" applied to the whole site should be removed or restricted. For translated PDFs, build the URL from the requested path:

<FilesMatch "\.pdf$">
    Header set Link "expr=<https://example.com%{REQUEST_URI}>; rel=\"canonical\""
</FilesMatch>

Reload with sudo apachectl configtest && sudo systemctl reload apache2.

Nginx

Versions Nginx 1.24 and later.

sudo nginx -T 2>/dev/null | grep -n -i "canonical"

Remove any add_header Link that points to a fixed URL. For non-HTML files, use the requested path:

location ~* \.pdf$ {
    add_header Link '<https://example.com$uri>; rel="canonical"';
}

Reload with sudo nginx -t && sudo systemctl reload nginx.

Cloudflare

Versions Cloudflare dashboard, all plans, November 2026.

Cloudflare does not write a canonical on its own. Two cases to check: a transform rule that adds a Link header (“Response Header Transform Rule” rules, listed in the rules overview), and a Worker that rewrites the HTML, for example for on-the-fly translation. Once the origin is fixed, purge the cache: Caching > Configuration, “Purge Everything”.

WordPress

Versions WordPress 6.4 to 7.1; WPML 4, Yoast SEO 20 and later, Rank Math 1.0, WP-CLI 2.

  • Field copied by WPML: in WPML > Settings > Custom Fields Translation, look for the SEO plugin's canonical field (_yoast_wpseo_canonical for Yoast SEO, rank_math_canonical_url for Rank Math). If it is set to “Copy”, the canonical entered on the original is copied to every translation. Switch it to “Don't translate” or “Translate”, then empty the field on the affected translations.
  • Field entered by hand: in the “Advanced” tab of Yoast SEO or Rank Math, empty “Canonical URL” on each translation. To find the affected posts from the command line:
wp db query "SELECT post_id, meta_value FROM $(wp db prefix)postmeta WHERE meta_key = '_yoast_wpseo_canonical' AND meta_value <> ''"
  • Theme: look for a hard-coded tag with grep -rn "canonical" wp-content/themes/your-theme/. Remove it and let WordPress or the SEO plugin handle it.
  • TranslatePress, Weglot: check that the tag on translated pages contains the language prefix; if not, contact the vendor with a sample URL.

Purge the plugin's page cache and the CDN cache.

Shopify

Versions Shopify admin and Online Store 2.0 themes, all plans, November 2026.

A theme's default canonical ({{ canonical_url }}) is self-referencing for each market and each language published under its own URL. If a translation points to the main language, the tag has been modified: open Online Store > Themes > … > Edit code, search for canonical in layout/theme.liquid and the snippets, and restore:

<link rel="canonical" href="{{ canonical_url }}">

Then turn off the canonical options of installed SEO apps if they add a second one.

Magento

Versions Magento Open Source and Adobe Commerce 2.4.6 to 2.4.9.

At the level of each store view (the “Scope” switcher at the top of Stores > Configuration), check that the base URL has not been inherited from the main view: a German view with the French base URL produces French canonicals. The settings are in Stores > Configuration > General > Web > Base URLs. Flush the cache afterwards.

Webflow

Versions Webflow with Webflow Localization, all site plans, November 2026.

A static page's “Page canonical URL” field overrides the generated canonical. If it contains the main language's URL, every locale of that page may inherit it: empty it, or check its value in each locale. Republish the site.

Laravel

Versions Laravel 10 to 13.

The typical case is a canonical built from config('app.url') and a path without a language, or from a source model:

{{-- Avoid --}}
<link rel="canonical" href="{{ config('app.url') }}/{{ $page->source->slug }}">

{{-- Correct: the URL of the translation being displayed --}}
<link rel="canonical" href="{{ route('pages.show', ['locale' => app()->getLocale(), 'slug' => $page->slug]) }}">

After the fix, clear the view and response caches (php artisan view:clear, plus the one from your page cache package).

Next.js

Versions Next.js 15 and 16 (App Router).

A canonical in app/layout.tsx or app/[lang]/layout.tsx is inherited by every page. Remove it and declare alternates.canonical in each page.tsx, with the path of the current language:

export async function generateMetadata({ params }: { params: Promise<{ lang: string; slug: string }> }) {
  const { lang, slug } = await params;

  return {
    alternates: { canonical: `/${lang}/blog/${slug}` },
  };
}

With a static site, rebuild and redeploy.

Nuxt

Versions Nuxt 3 and 4, @nuxtjs/i18n module 9 and 10.

Do not set the canonical by hand in app/app.vue (Nuxt 4; app.vue at the project root with Nuxt 3) with a URL in the default language. Let useLocaleHead() from the @nuxtjs/i18n module generate it for the current language, with baseUrl set in nuxt.config.ts.

After the fix

  1. Check a sample of URLs per language with the command from the “How to check” section.
  2. Make sure the translations are in the sitemap and in the hreflang annotations.
  3. Request indexing of the most important pages in each language in the URL Inspection tool. The rest will be recrawled at Google's usual pace; allow several weeks on a large site.
  4. Track how the “Alternate page with proper canonical tag” reason and the number of indexed pages per language evolve.

Common mistakes

  • Believing translations are duplicate content: they are not when the main content is translated.
  • Fixing the HTML and forgetting the Link header, which keeps sending the old canonical.
  • Replacing the cross-language canonical with a noindex: the translations disappear just the same.
  • Keeping hreflang pointing to URLs that canonicalize elsewhere: contradictory signals.
  • Forgetting caches (plugin, CDN, render cache): the old tag keeps being served for days.
  • Testing only the home page: article, product and category templates often each have their own logic.

Frequently asked questions

Are translations duplicate content for Google?

No, as long as the main content is actually translated. Google states that language versions of a page are only considered duplicates if their main content is in the same language, for example when only the menu and footer are translated. A real translation therefore does not need to be canonicalized to the original: it should point to itself and be linked to the other versions with hreflang.

What happens if every translation has a canonical to the French version?

The site declares that the translations are copies of the French version. Google may then drop them from the index and classify them as “Alternate page with proper canonical tag” in Search Console. The hreflang annotations are contradicted, users in the other languages see the French page or nothing, and the performance of those versions is attributed to the French URL in the reports.

How long does it take for translations to be indexed after the fix?

The delay depends on how often Google recrawls your pages. Important pages, submitted in the URL Inspection tool, can be reassessed within a few days. The rest follows the usual crawl pace, which can take several weeks on a large site. An up-to-date sitemap, with reliable modification dates, helps Google spot the pages that have changed.

Can you canonicalize the en-US and en-GB variants to a single version?

It is possible if the two pages are identical, but the version that points elsewhere will no longer be indexed or shown in its own right, and its hreflang annotations lose their meaning. If the variants genuinely differ, through currency, prices or shipping, keep a self-referencing canonical on each one with hreflang. If they are identical, a single English version is often simpler.

Updated on

Topic checklist (PDF)

And now?

In the “Multilingual indexing and sitemaps” topic

  1. Use a self-referencing canonical for each actual translation
  2. Do not canonicalize all translations to the main language
  3. Check that each language is indexed independently
  4. Identify duplicates within a language
  5. Handle near-identical regional variants
  6. Check noindex by language
  7. Check untranslated URLs and fallbacks
  8. Check localized 404 errors
  9. Check redirects and old translated URLs
  10. Compare Google-selected canonicals
  11. Create per-language sitemaps if useful
  12. Create a sitemap index
  13. Automate sitemaps
  14. Exclude unpublished or non-indexable translations
  15. Manage lastmod per translation
  16. Submit sitemaps to Google/Bing
  17. Track the indexing rate by language