Jump to content

Multilanguage Rel=Canonical Product.html


radus

Recommended Posts

Hi,

 

I wanted to build multilanguage canonical for main language, on this structure, but I need some corrections

 

For Default Language

 

<link rel="canonical" href="{$content_dir}{$PS_LANG_DEFAULT}/{$category}/{$product.friendly_url}-{id}{:ean13}.html" />

 

 

For each Language enabled, with it's friendly url

 

<link rel="alternate" hreflang="{$lang_iso}" href="{$content_dir}{$lang_iso}/{$category}/{$product.friendly_url}-{id}{:ean13}.html" />

 

thanks,

 

r

Link to comment
Share on other sites

  • 3 months later...

I just wondered if you figured this out? My old website is all at root, where the new one has languages in separate folders so I wanted default language to also be at root (so not to mess up SEO). Is this what you're trying to achieve?

 

thanks

Link to comment
Share on other sites

yes Andrew, it's exactly how you said.

 

Default language marked in SEO as Canonical URL ( using Friendly URL path if filled ).

All other enabled languages also marked as existing, but using their path.

 

It is something I could not yet figure out how to do it.

 

cheers,

 

r

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...