radus Posted February 23, 2013 Share Posted February 23, 2013 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 More sharing options...
Andrew H Posted May 23, 2013 Share Posted May 23, 2013 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 More sharing options...
radus Posted May 24, 2013 Author Share Posted May 24, 2013 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now