Seo Forum

Search Engine Optimization => SEO Basics => Topic started by: danielnash on 06-09-2015, 01:15:22

Title: How to use "hreflang tag"?
Post by: danielnash on 06-09-2015, 01:15:22
Can anybody tell me the step of How to use "hreflang tag"?
Title: Re: How to use "hreflang tag"?
Post by: soniakumari789a on 06-09-2015, 03:56:58
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">
Title: Re: How to use "hreflang tag"?
Post by: WebOutGateway on 06-09-2015, 04:05:21
Hi there!

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

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

Hope it helps and good luck!
Title: Re: How to use "hreflang tag"?
Post by: pricekhan on 06-09-2015, 07:40:02
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" />

 !-! Pricekhan.com (http://Pricekhan.com) !-!
Title: Re: How to use "hreflang tag"?
Post by: danielnash on 06-11-2015, 07:32:30
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?
Title: Re: How to use "hreflang tag"?
Post by: TomClarke on 09-07-2016, 03:15:11
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.