Jump to content

Problem with Attributes hreflang


Recommended Posts

Hi all, I got proglem with "hreflang" attributes in google webmaster tools, there is a lot of errors: "On the page with the code of language en no backlinks". As I find out if I have page like:

en/category/product1 then I have to add on this page code like: 

<link href='https://www.site.com/en/category/product1' hreflang='en' rel='alternate'>

<link href='https://www.site.com/ru/category/product1' hreflang='ru' rel='alternate'>

<link href='https://www.site.com/en/category/product2' hreflang='en' rel='alternate'>

<link href='https://www.site.com/ru/category/product2' hreflang='ru' rel='alternate'>


How can I achieved such an arrangement, on each product page?


Now I got only this code in header.tpl

<link rel="alternate" href="http://www.site.com/en/" hreflang="en" />
<link rel="alternate" href="http://www.site.com/ru/" hreflang="ru" />



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...