How to use "hreflang tag"?

Started by danielnash, 06-09-2015, 01:15:22

Previous topic - Next topic

danielnashTopic starter

Can anybody tell me the step of How to use "hreflang tag"?


soniakumari789a

I think you can add it into 'head' tag of file 'index.php' easily with code below

<link rel="alternate" hreflang="<your_site_URL>" href="en-us">
  •  


WebOutGateway

Hi there!

This article may help you with your concern. See link below.

https://www.branded3.com/blog/implementing-hreflang-tag/

Hope it helps and good luck!

pricekhan

The hreflang tag on each page should include a reference to itself as well as to all the pages that serve as alternates for it. If your Spanish website sells Iberian ham to customers in Spain, France, and Portugal only, the hreflang tags for your homepage might look like this:

<link rel="alternate" href="example.com" hreflang="es-es" />
<link rel="alternate" href="example.com/fr/" hreflang="fr-fr" />
<link rel="alternate" href="example.com/pt/" hreflang="pt-pt" />

!-! newbielink:http://pricekhan.com [nonactive] !-!
  •  

danielnashTopic starter

my site has too many pages about 1 million pages, and i want to use hreflag tag for each pages, how can i do for all pages, is there any dynamic code for it?


TomClarke

Hreflang is code,  which you can show to search engines in three different ways. With this code you specify all the different URLs on your site that have the same content. Thes eURLs  can have the same content in a different language, or the same language but targeted at a different region . You should use it if:
- you have the same content in multiple languages;
- you have content aimed at different geographic regions, but in the same language.
Whether the content ypou have resides on one domain or multiple domains does not matter. you can link variations within the same domain but can also link between domains.