- /fr/
- /en/
- x-default
- Give each language its own address, such as /fr/ and /en/.
- On every page, list all its language versions, including itself, plus an x-default for everyone else.
- Make the links work both ways, and use the final address of each page, not one that redirects.
- Set the lang attribute on the html tag of each page to match its language.
Example
Read the guideMake your pages faster on phones<link rel="alternate" hreflang="fr" href="https://example.com/fr/">
<link rel="alternate" hreflang="en" href="https://example.com/en/">
<link rel="alternate" hreflang="x-default" href="https://example.com/fr/">