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

Have I implemented hreflang correctly?

Discussion in 'White Hat SEO' started by Traste, Apr 16, 2014.

  1. Traste

    Traste Regular Member

    Joined:
    Dec 18, 2011
    Messages:
    304
    Likes Received:
    24
    Hi,

    I have a spanish site with 2 different languages:

    site.com/es/
    site.com/ca/
    site.com/gl/

    This is what I have in every single URL:

    Code:
    <link rel="alternate" hreflang="es" href="http://www.site.com/es/title-of-the-post/" />
    <link rel="alternate" hreflang="ca" href="http://www.site.com/ca/title-of-the-post/" />
    <link rel="alternate" hreflang="gl" href="http://www.site.com/gl/title-of-the-post/" />
    Let's say I am in this URL:

    <link rel="alternate" hreflang="es" href="http://www.site.com/es/title-of-the-post/" />

    And this is what I have in <header>:

    Code:
    <link rel="alternate" hreflang="es" href="http://www.site.com/es/title-of-the-post/" />
    <link rel="alternate" hreflang="ca" href="http://www.site.com/ca/title-of-the-post/" />
    <link rel="alternate" hreflang="gl" href="http://www.site.com/gl/title-of-the-post/" />
    Should I remove the first line? That one tells Google there's a version in spanish of the same URL, which is the same one we are in. I am guessing I should just add these two lines:

    Code:
    <link rel="alternate" hreflang="ca" href="http://www.site.com/ca/title-of-the-post/" />
    <link rel="alternate" hreflang="gl" href="http://www.site.com/gl/title-of-the-post/" />
    But that's not what Google itself does:

    [​IMG]


    Thanks
     
  2. krswlr

    krswlr Junior Member

    Joined:
    Aug 28, 2013
    Messages:
    130
    Likes Received:
    18
    Home Page:
    Interesting. I read some stuff about it on Moz (http://moz.com/blog/using-the-correct-hreflang-tag-a-new-generator-tool), but I'd really appreciate if someone could confirm, that your configuration is correct.