Hreflang Implementation
-
Hello All,
I'm currently working on a website with different folders for different country. For now I have defined the href lang implementation as below:
http://www.homepage.com/en/default.html"/>
Language: English - Country: United Kingdomhttp://www.homepage.com/enus/default.html"/>
Language: English - Country: United Stateshttp://www.homepage.com/nl/default.html"/>
Language: Dutch - Country: Netherlandshttp://www.homepage.com/nlbe/default.html"/>
Language: Dutch - Country: Belgiumhttp://www.homepage.com/fr/default.html"/>
Language: French - Country: All french speaking countrieshttp://www.homepage.com/de/default.html"/>
Language: German - Country: All german speaking countrieshttp://www.homepage.com/es/camisa-a-medida.html"/>
Language: Spanish - Country: Spainhttp://www.homepage.com/enen/default.html" />
Language: English - Country: All other countriesDoes this make any sense?
Furthermore, how do I implement this on underlying pages. Do I fill out the URL dynamically according to the URL the tags are found on? Or do I use these tags mentioning the homepage on all underlying pages? If so, how do I avoid duplicate content issues between NL and NL-BE and EN-GB, EN-US and EN? Canonicals?
Besides the whole hreflang implementation I was wondering if it's worthwhile or advisable to implement lang="en" xml:lang="en_"_ in the HTML tag and http-equiv="content-language" content="en_"_ in the META tags?
-
Hi Bulserik
regarding those two questions, if we look just at Google, they are not taken into consideration by Google for International SEO.
On the other:
- because they don't harm a site;
- because they are used by Bing for geolocalization and geotargeting (Bing does not use the hreflang)
then, it is a good idea using them.
Check this old but still valid post on Bing about how to geotarget for them: http://blogs.bing.com/webmaster/2011/03/01/how-to-tell-bing-your-websites-country-and-language/
Finally, just to be sure:
remember to create Google Webmaster Tools profile for each subfolder and geotarget them for their corresponding countries.
-
No one able to help me out on this one?
-
Great, thanks. I'm afraid I'm on ISS though so have to see how to get that working. I understand from your answer the correct way of doing this is by implementing a dynamic URL in the hreflang tag and not just the homepage.
Besides the technical implementation you explained above, I'm assuming the way I segmented the site is okay right?
After that I still have this part unsolved: Besides the whole hreflang implementation I was wondering if it's worthwhile or advisable to implement lang="en"xml:lang="en" in the HTML tag and http-equiv="content-language" content="en" in the META tags?
-
Assuming you're on an Apache server, this works for internal pages:
" hreflang="x-default" />
" hreflang="en-au" />
" hreflang="en-ca" />The REQUEST_URI will pull the internal page you're on (so if you're /about, then it will add /about to all 3 hreflang tags. I don't know if (but I think) this won't work on IIS servers. Just a thought if it doesn't seem to work.
Assuming your folder structure stays the same, you should be all set.
And once you're done, test it using Flang.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
HREFLANG: language and geography without general language
Some developers always implement the hreflang for German (which should be "de") as "de-de", so language German and country Germany. There is usually no other German version targeting the other German-speaking countries (mostly ch, at). So obviously the recommendation is to make it "de" and that's the end. But I kept wondering and not finding anything: IF there is a more specialised hreflang, will google take that if there is no default? Example: Search in: de-at (or de-ch) Search result has the following hreflang versions: de-de; x-default (==en), en => Will Google give the result for x-default or de-de?
Technical SEO | | netzkern_AG0 -
Hreflang tags with link to redirect loop
Hi guys, I'm having a bit of an issue on a client site that I'm hoping someone can help me with. Basically, the client has two domains, one serving users in the Republic of Ireland (http://www.americanholidays.com), showing Euro prices, and the other serving users in Northern Ireland (http://www.americanholidays.com/gb_en/) showing £ prices. The issue I'm having is that the URL for the Northern Ireland page has a 302 on it and goes through another 2/3 301 redirects until it resolves as http://www.americanholidays.com, however it does then show the £ prices. You can see the redirect chain here: http://tools.seobook.com/server-header-checker/?page=single&url=http%3A%2F%2Fwww.americanholidays.com%2Fgb_en%2F&useragent=1&typeProtocol=11 The homepage is using the Hreflang tag, and pointing search engines to serve the http://www.americanholidays.com/gb_en/ page to users using EN-GB as their language. The page is also using a self-referencing canonical, which I believe may negate the whole Hreflang tag anyway? My main question is - is the fact that the Hreflang for the gb_en page is pointing to a chain of redirects negatively affecting it? (I understand too many redirects are never good). Also, is the canonical negating the Hreflang? Any help/info would be great as I just can't get my head around it! Thanks guys Daniel
Technical SEO | | DanielKiely60 -
Hreflang for multple countries but single language
I'm working on a site that has implemented hreflang. The site is all in English but has slight differences and breaks down to separate domains, so example.co.uk example.eu example.com the hreflang implementation targets specific countries per domain. This was tested using http://flang.dejanseo.com.au but Webmaster Tools has thrown up errors. For example, **URLs for your site and alternative URLs in 'en_GB' that do not have return tags. **But every page refers back.Any ideas what's going wrong?
Technical SEO | | MickEdwards0 -
Advanced Hreflang !
Hey Everyone: We are currently implementing hreflang tags on our site, and we have many parameter pages with hreflang tags; however, I am afraid these may be counted as duplicate content without canonical tags. example.com/utm_source=tpi href='http://example.com/de" hreflang="de" rel="alternate" href='http://example.com/nl" hreflang="nl" rel="alternate" href='http://example.com/fr" hreflang="fr" rel="alternate" href='http://example.com/it" hreflang="it" rel="alternate" I have two questions 1. On the parameter pages (which have hreflang tags like above) do we also need a canonical tag on example.com/utm_source_tpi pointing to example.com ? 2. On the homepage (page without the parameter), should I add a self referencing hreflang tag? (href="http://example.com/" hreflang="es") Thanks so much for your help! -K
Technical SEO | | TeespringMoz0 -
Using hreflang tags properly.
On my site "example.com" I have set up the following in the header: The problem is that the tags are universal across the site, so every page has these tags, leading obviously to no return tag errors. I.e. the page www.example.ca/testing.html still has the tags: Not tags with "testing.html" in them. How bad is this? Does it matter?
Technical SEO | | absoauto0 -
How to implement schema.org for different hotel rooms types
I'm working on a resort that has different type of rooms available. Does anyone know how to use schema.org to set it a hotel with different hotel room types. I looked at the hotel schema but I did not see any room types. Thanks!
Technical SEO | | ppapola0 -
Correct Implementation Of Canonical Tags
Hopefully this is an easy one to answer. When canonical tags are added to web pages should there be a canonical tag on a page that canonicalizes(?) (new word!?) back to itself. i.e. four page all point back to page Z. On page Z there is a canonical tag that points to page Z? My feeling without any technical know how is that this is just creating an infinite loop i.e. go to this page for original content, (repeat) Or this could be completely correct! Don't want to go back to the developer and point out the error if I'm wrong!
Technical SEO | | ZaddleMarketing0 -
How to implement a temporary splash page?
Hello - Our company will soon be launching a major product enhancement and we have discussed using a splash page when a visitor hits our homepage to promote the launch. I'm thinking something similar to what Apple did on Apple.com to announce addition of The Beatles catalog ot iTunes. I've never actually implemented anything like this before and wanted to get feedback from the community on how best to handle this from an SEO perspective. Thanks, Jason
Technical SEO | | TKSearchGuy0