1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Message on google webmastertools regarding wrong implementation of "hreflang" tag

Discussion in 'White Hat SEO' started by tonyp, Oct 27, 2013.

  1. tonyp

    tonyp Regular Member

    Joined:
    May 23, 2010
    Messages:
    278
    Likes Received:
    31
    Gender:
    Male
    Occupation:
    Digital Marketing
    Location:
    Los Angeles
    Home Page:
    Hi,

    Just got this message on google webmaster tools:

    I have the hreflang tags set for a few months now and nothing has changed recently with how they are implemented.


    This is how they are set:


    English page: domain.com/page.html

    has the following:

    Code:
    <link rel="canonical" href="domain.com/page.html">
    <link rel="alternate" hreflang="en" href="domain.com/page.html">
    <link rel="alternate" hreflang="fr" href="domain.com/fr/page.html">

    French page: domain.com/fr/page.html

    has the following:

    Code:
    <link rel="canonical" href="domain.com/fr/page.html">
    <link rel="alternate" hreflang="en" href="domain.com/page.html">
    <link rel="alternate" hreflang="fr" href="domain.com/fr/page.html">

    I'm using canonical since each page can have a few parameters for tracking purposes.


    So I have the link back from B to A as needed, not sure what is wrong on my setup?
     
  2. lonhot2000

    lonhot2000 Newbie

    Joined:
    Sep 23, 2013
    Messages:
    19
    Likes Received:
    3
    Hi Tony,

    Are you including the protocol in the href (http)?

    I've heard a lot of people getting these warnings even though they had no bi-directional linking problems. Assuming your href values are correct I wouldn't worry about it. Perhaps Google hadn't crawled both version before sending the warning?!?