I have this pages:
https://domain.tld/fr/post/mon-premier-article
https://domain.tld/fr/post/my-first-post
https://domain.tld/fr/post/mi-primera-publicacion
Same for site in English...
https://domain.tld/en/post/mon-premier-article
https://domain.tld/en/post/my-first-post
https://domain.tld/en/post/mi-primera-publicacion
... and in Spanish:
https://domain.tld/es/post/mon-premier-article
https://domain.tld/es/post/my-first-post
https://domain.tld/es/post/mi-primera-publicacion
With a 301
redirect from https://domain.tld/post/mon-premier-article
to https://domain.tld/fr/post/mon-premier-article
, depending on the user language (with fallback to en
).
Only the blog post content change. Headers, footer, navigation... will be localized according to the user language.
So... here my <link>
tags for the page /post/mon-premier-article
:
<link hreflang="fr" rel="canonical" href="https://domain.tld/post/mon-premier-article">
<link hreflang="en" rel="alternate" href="https://domain.tld/post/my-first-post">
<link hreflang="es" rel="alternate" href="https://domain.tld/post/mi-premera-publicacion">
Not sure if I use it right. Must I include the /fr
in the URL?
The three pages have a different content, they're just translations. So no duplicate content here, right? So Maybe the following is better?
<link hreflang="fr" rel="canonical" href="https://domain.tld/post/fr/mon-premier-article">
<link hreflang="en" rel="alternate" href="https://domain.tld/post/en/mon-premier-article">
<link hreflang="es" rel="alternate" href="https://domain.tld/post/es/mon-premier-article">