What is the correct use of rel=hreflang and rel=canonical? someone please help

2 replies
  • SEO
  • |
Hi,

We have a site in a different languages.

Structure is set as follows:

example.com/en/page.html
example.com/es/page.html
example.com/fr/page.html

Basically only the template is translated and the content is always in English.

each page.html also has versions with parameters which is why I want to use canonical as well

I was thinking of doing the following:
have on each page all the hreflang tags for the different languages and canonical to the same language so for example:

example.com/es/page.html
will have:
<link rel="alternate" hreflang="es" href="example.com/en/page.html">
<link rel="alternate" hreflang="es" href="example.com/es/page.html">
<link rel="alternate" hreflang="fr" href="example.com/fr/page.html">

<link rel="canonical" href=""example.com/es/page.html">

Does this make sense?

Thanks
#correct #relcanonical #relhreflang

Trending Topics