Breighty Crawling and indexing

Canonical tags and hreflang: run a French-English site without conflicting signals

A bilingual site publishes every page twice, in French and in English. For Google to show the right version to the right person, two signals must agree: the canonical tag, which names a page’s reference address, and hreflang annotations, which connect the language versions. Combined badly, they cancel each other out. Here are the official rules and a simple way to apply them to a French-English site.

01

What the canonical tag does

When several addresses show very similar content, you can state your preferred address. Google ranks the methods by influence: redirects and the rel="canonical" tag are strong signals, the sitemap a weak one. Use absolute URLs, link internally to the canonical address and never declare two different canonicals for the same page. Google advises against robots.txt and noindex for choosing a canonical within a site.

02

What hreflang does

Hreflang annotations tell Google which versions of a page target other languages or regions. Three official rules prevent most mistakes.

  • Each version must list itself as well as all other versions. If two pages do not point to each other, the annotations are ignored.
  • Only ISO 639-1 language codes and ISO 3166-1 alpha-2 region codes are supported: fr-CA and en-CA work; a region code alone does not.
  • The reserved x-default value applies when no other language matches the browser settings.

HTML, HTTP header or sitemap

Google accepts three methods and treats them as equivalent. Pick one and apply it everywhere: combining them adds no benefit and multiplies the risk of inconsistency.

03

Combining them correctly on a French-English site

Google only treats localized versions as duplicates when the main content is left untranslated. A genuinely translated English page is therefore its own canonical; it should not point to the French version. For a services page published at /fr/services and /en/services, each version carries its own canonical and the same three annotations:

  • French page: canonical https://example.ca/fr/services.
  • English page: canonical https://example.ca/en/services.
  • On both pages: hreflang fr-CA to /fr/services, hreflang en-CA to /en/services.
  • On both pages: x-default to the version shown by default, for example /fr/services.

When the translation does not exist yet

Do not link a French page to the English homepage while waiting for its translation: the two pages are not equivalent. Leave out the hreflang pair until the translated version is published, and make the language switcher point to a page that really exists.

04

Mistakes that come up often

These mistakes are easy to fix once found, but they go unnoticed by eye because the page looks perfectly normal.

  • A canonical pointing to the homepage on every page.
  • A canonical pointing to the staging address or to the http version.
  • An invented code such as fr-QC: QC is not an ISO 3166-1 country code, so use fr-CA.
  • An annotation with no return link on the matching page.
  • A language switcher leading to a 404 page or to the homepage.
  • Hreflang or canonical tags pointing to redirected addresses.

05

Checking the signals on a bilingual page

View the source of both versions and compare the link rel="canonical" and rel="alternate" tags: they must mirror each other exactly. Also check the lang attribute of the html element, which notably helps assistive technologies. In Search Console, URL Inspection shows the canonical Google selected. A Breighty analysis checks canonical targets and consistency, hreflang annotations and the declared language of the tested pages.

06

Your preparation checklist

Gather these details to turn the guide into a practical next step. Simply flag anything you do not yet know.

  • The French-English page pairs, address by address.
  • The canonical read from the source code of each version.
  • The language and region codes in use, and whether they are valid.
  • Pages without a translation and where their language switcher leads.
  • The canonical Google selected for one page in each language.

Frequently asked questions

Should my English version use the French page as its canonical?

No, if it is genuinely translated. Google only treats localized versions as duplicates when the main content stays untranslated. Each version keeps its own canonical, and hreflang connects them.

Can I use fr-QC to target Québec?

No. Regions must be ISO 3166-1 alpha-2 country codes, and QC is not one of them. For a site in Québec, fr-CA and en-CA are the appropriate codes.

Is x-default required?

It is not required. It names the version to show when no language matches the browser. On a French-English site, it often points to the site’s main language or to a language-selection page.

Keep going

Sources and documentation

Let’s work on your project.

Understand findings, choose fixes and verify results. Guides for working on your actual website.

Analyze my website

Read next