hreflang usage in websites

2 replies
  • SEO
  • |
We have a websites for eg.

Now we use href lang in for eg.

<link rel="alternate" href="" hreflang="en-za" />
the above is the head of

and then for nigeria site
<link rel="alternate" href="" hreflang="en-ng" />

then for kenya site
<link rel="alternate" href="" hreflang="en-ke" />

Is this the correct way to do it.

When I look at source code of others sites I see they take all href langs and put it in each sites head instead rather than one for each.
#hreflang #usage #websites
Avatar of Unregistered
  • Profile picture of the author frankl
    If your site is not available in multiple languages you don't need to use hreflang
    If I understand well, you are talking about three separate websites.

    This is from ahref
    Hreflang is an HTML attribute used to specify the language and geographical targeting of a webpage. If you have multiple versions of the same page in different languages, you can use the hreflang tag to tell search engines like Google about these variations.

    If the website content is only available in one language then it just enough to define the language in the html tag:

    <html lang="en">
    {{ DiscussionBoard.errors[11661389].message }}
  • Profile picture of the author ravinder3790
    As you are already having different websites, use of hreflang is no more a necessity. However, if all three websites have almost same content, you can go ahead with the tag.
    Using Different ccTLDs is highly recommended if you are targeting country specific audience.

    So, I think you don't need to include hreflang in your websites.

    {{ DiscussionBoard.errors[11661463].message }}
Avatar of Unregistered

Trending Topics