On this page
- The principle: one URL per page per language
- Choosing a URL structure
- Translate the slugs too
- hreflang: telling search engines the pages are siblings
- Canonicals: each page points to itself
- Do not redirect by language automatically
- A language switcher that goes to the same page
- Write each version for its readers
- Sitemaps for both languages
- A checklist
- Common questions
- Where to go from here
A bilingual website should rank twice: once for people searching in English, once for people searching in French. Many bilingual sites rank once, or worse, compete with themselves, because the second language was added as a translation layer instead of being built as a site in its own right.
This guide covers how to structure an English and French website so search engines understand both versions, and the most common mistakes on Canadian and European sites.
The principle: one URL per page per language
Search engines index URLs. If the French and English versions of a page share one address, with the language switched by a cookie, a script or the visitor's browser settings, a search engine will typically see one language and ignore the other.
So the first rule is simple: every page has its own address in each language. The English services page and the French services page are two URLs, each with its own title, description and content.
Choosing a URL structure
There are three common options.
| Structure | Example | Notes |
|---|---|---|
| Subdirectories | example.com/services and example.com/fr/services | One domain, shared authority, simplest to manage |
| Subdomains | example.com and fr.example.com | Works, but often treated more like separate sites |
| Separate domains | example.com and example.fr | Strong local signal, but two sites to build authority for |
For most businesses, subdirectories are the right choice. One domain builds authority for both languages, and the setup is the simplest to maintain. Keep the main language at the root and the second under a prefix, or put both under prefixes; either works if you are consistent.
Translate the slugs too
A French page at /fr/services/website-redesign works, but /fr/services/refonte-site-web is better. The address is part of what the searcher sees in results, and it confirms the page is in their language. Translated slugs take more care: links, redirects and the language switcher all need to know that the two addresses are the same page. That is a reason to build them properly, not a reason to skip them.
hreflang: telling search engines the pages are siblings
hreflang annotations tell search engines that two URLs are the same page in different languages, so they can show the right one to each searcher and do not treat them as duplicates.
On each page, list every language version, including itself:
enpointing to the English URL.frpointing to the French URL.x-defaultpointing to the version for everyone else, usually English.
The rules that trip people up:
- The annotations must be reciprocal. If the English page lists the French one, the French page must list the English one. One-way annotations are ignored.
- Use full URLs. Absolute addresses, with the right protocol and host.
- Point to the canonical version of each page, not to a redirect or a parameter variant.
- Use region codes only when you have regional versions.
fr-CAandfr-FRmake sense only if you really have different pages for Québec and France. Otherwisefris right.
hreflang can go in the page head, in HTTP headers or in the XML sitemap. The head or the sitemap is the usual choice. Whichever you use, generate it from the same data that builds the pages, so it cannot drift out of date.
Canonicals: each page points to itself
Each language version should have a canonical tag pointing to its own URL. A common mistake is pointing the French page's canonical to the English one, which tells search engines to ignore the French page entirely.
Do not redirect by language automatically
It is tempting to send French-speaking visitors to the French site automatically, based on their browser or location. Do not, at least not with a redirect. Search engine crawlers mostly come from one location with one language setting; if they are always redirected, they may never see the other version. It also frustrates people who prefer the other language or are browsing from abroad.
Instead, let every URL always serve the same language, and offer a clear language switcher.
A language switcher that goes to the same page
The switcher should take the visitor to the same page in the other language, not back to the home page. It sounds obvious and is one of the most common faults. It matters for visitors, and it creates internal links between the language versions that help search engines understand them.
Write each version for its readers
Search engines are good at spotting machine translation, and so are people. A French version that reads like a translation converts poorly even when it ranks.
- Write, or at least edit, each version with a native speaker.
- Research keywords separately in each language. People in Québec do not always search with the same words as people in France, and neither searches with literal translations of English terms.
- Adapt examples, units and references to the market.
If you operate in Québec, the French version is also a legal matter: commercial content must be available in French, and French must be at least as prominent as other languages.
Sitemaps for both languages
List both language versions in your XML sitemaps, ideally with hreflang alternates for each URL. Submit the sitemaps in Google Search Console and Bing Webmaster Tools, and check that both languages are being indexed.
A checklist
- Each page has its own URL in each language.
- Slugs are translated.
- hreflang lists en, fr and x-default on every page, reciprocally, with absolute URLs.
- Each page's canonical points to itself.
- No automatic redirect by browser language or location.
- The language switcher goes to the same page.
- Titles, descriptions and headings are written for each language.
- Both languages are in the sitemaps.
Common questions
Should French be at the root or under /fr?
Either works. Put at the root the language most of your visitors and searches use, and the other under a prefix. If your market is mostly Québec, French at the root is natural; if it is mostly the rest of Canada or the US, English at the root is. What matters is being consistent and never serving two languages at the same address.
Can we launch in one language and add the second later?
Yes, if the site is built for it. Plan the URL structure, the templates and the content model for two languages from the start, even if only one is published. Adding the second language then means writing content, not rebuilding the site.
Does Google use the lang attribute to detect the language?
Google says it detects the language from the visible content, not from the lang attribute. Set it correctly anyway: screen readers use it to pronounce the text, and browsers use it to offer translation.
Should the two versions be identical?
No. They should cover the same page and serve the same purpose, but each should be written for its readers. Examples, wording and even the order of sections can differ if the markets differ. Search engines expect equivalent pages, not word-for-word copies, and readers notice the difference immediately.
Where to go from here
If you are redesigning a bilingual site, the website redesign checklist covers the migration side, and in Québec, the Law 25 checklist covers privacy. This site is built the way this article describes, with English at the root, French under /fr and translated slugs. If you would like yours built the same way, that is part of every website design and development project we do.