Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
Hreflang : mixing with/without country code for same language
-
Hello,
I would like to display 3 different english versions of my website : 1 for UK, 1 for CA and 1 for other english users.
It would look like this for a page:
. (english content with £ prices)
<link rel="alternate" href="https: xxx.com="" en-ca" hreflang="en-CA">(english content with $CA prices)</link rel="alternate" href="https:>
<link rel="alternate" href="https: xxx.com="" en="" " hreflang="en">(english content without currency)</link rel="alternate" href="https:>
I wonder if I can mix this hreflang without country code with hreflangs with country code for the 2 other specific versions... or if the hreflang without country code version will appear whatever the country, even if i specified it .
In other terms, is hreflang="en" > hreflang="en-CA" + hreflang="en-GB" if tagged together on a same page?
Thank you
-
I think you are taking that rather too literally.
For example, as I said the .com could be the one targeted with an hreflang="x-default. A person in the UK would, by definition be served with the .com/uk version.
You wouldn't put a hreflang="x-default on the /uk homepage.
Regards
Nigel
-
The x-default is just what the link you provided says it is:
From Google: The reserved value hreflang="x-default" is used when no other language/region matches the user's browser setting. This value is optional, but recommended, as a way for you to control the page when no languages match. A good use is to target your site's homepage where there is a clickable map that enables the user to select their country.
If you use it for just one language, the issue comes when you have more than one language. The setup for x-default is for when there is no language detected, not that a general, non-regional language is detected.
-
Surely the x-default is, as the tag suggests, a default where no country or language is targeted? So if someone resided in an untargeted country and the site happened to rank it would be that one that came up.
Someone in the UK (which contained a UK target tag) would not go to default first, as you suggest, and then select their own country & language. That's misleading.
I agree that the subfolders would be used to target each country but you would still need both country and language. With Canada you may wish to target en and fr as both are relevant and each would reside in a different sub-folder.
The language is essential imho.
Regards Nigel
-
Actually, the x-default is meant to be for a page that allows users to select a country/language combination.
Alexis, in theory, what you are proposing should work. However, it is not always perfect. There is so much that goes into how Google serves content to each user. You might not see it working perfectly every time, but you can use the non-country with two country-specific hreflang tags together.
In fact, the country coded hreflang tags were meant to be dialect-specific. So a site could have US English content and UK English content, but also more general English content for the rest of the English speaking people.
In fact, it sounds like if the only thing changing is the currency, you might try geo-targeting subfolders. You can do hreflang in addition to that, but geotargeting is what is meant to be used here.
- Content for CA: https://www.domain.com/ca/content
- Content for GB: https://www.domain.com/gb/content
- General Content: https://www.domain.com/content
Claim the subfolders in Google Search Console as different properties and then target each one to those countries in the International Targeting area.
Then add hreflang the way you mentioned with those URLs. However, this setup won't work if you are doing things with another language mixed in. If you are planning on that, let me know.
-
Hi Alexis
If the third one is the default then you need a default hreflang tag.
https://moz.com/learn/seo/hreflang-tag
So the last one would have this tag pointing to it:
More on Google here:
https://support.google.com/webmasters/answer/189077?hl=en
It will then become the default site for all people not in England or Canada. Google will not see any of them as duplicate content.
Regards
Nigel
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
-
Same site serving multiple countries and duplicated content
Hello! Though I browse MoZ resources every day, I've decided to directly ask you a question despite the numerous questions (and answers!) about this topic as there are few specific variants each time: I've a site serving content (and products) to different countries built using subfolders (1 subfolder per country). Basically, it looks like this:
Intermediate & Advanced SEO | | GhillC
site.com/us/
site.com/gb/
site.com/fr/
site.com/it/
etc. The first problem was fairly easy to solve:
Avoid duplicated content issues across the board considering that both the ecommerce part of the site and the blog bit are being replicated for each subfolders in their own language. Correct me if I'm wrong but using our copywriters to translate the content and adding the right hreflang tags should do. But then comes the second problem: how to deal with duplicated content when it's written in the same language? E.g. /us/, /gb/, /au/ and so on.
Given the following requirements/constraints, I can't see any positive resolution to this issue:
1. Need for such structure to be maintained (it's not possible to consolidate same language within one single subfolders for example),
2. Articles from one subfolder to another can't be canonicalized as it would mess up with our internal tracking tools,
3. The amount of content being published prevents us to get bespoke content for each region of the world with the same spoken language. Given those constraints, I can't see a way to solve that out and it seems that I'm cursed to live with those duplicated content red flags right up my nose.
Am I right or can you think about anything to sort that out? Many thanks,
Ghill0 -
:Pointing hreflang to a different domain
Hi all, Let's say I have two websites: www.mywebsite.com and www.mywebsite.de - they share a lot of content but the main categories and URLs are almost always different. Am I right in saying I can't just set the hreflang tag on every page of www.mywebsite.com to read: rel='alternate' hreflang='de' href='http://mywebsite.de' /> That just won't do anything, right? Am I also right in saying that the only way to use hreflang properly across two domains is to have a customer hreflang tag on every page that has identical content translated into German? So for this page: www.mywebsite.com/page.html my hreflang tag for the german users would be: <link < span="">rel='alternate' hreflang='de' href='http://mywebsite.de/page.html' /></link <> Thanks for your time.
Intermediate & Advanced SEO | | Bee1590 -
Why is Google ranking irrelevant / not preferred pages for keywords?
Over the past few months we have been chipping away at duplicate content issues. We know this is our biggest issue and is working against us. However, it is due to this client also owning the competitor site. Therefore, product merchandise and top level categories are highly similar, including a shared server. Our rank is suffering major for this, which we understand. However, as we make changes, and I track and perform test searches, the pages that Google ranks for keywords never seems to match or make sense, at all. For example, I search for "solid scrub tops" and it ranks the "print scrub tops" category. Or the "Men Clearance" page is ranking for keyword "Women Scrub Pants". Or, I will search for a specific brand, and it ranks a completely different brand. Has anyone else seen this behavior with duplicate content issues? Or is it an issue with some other penalty? At this point, our only option is to test something and see what impact it has, but it is difficult to do when keywords do not align with content.
Intermediate & Advanced SEO | | lunavista-comm0 -
My .com ranks well in the US but not in the UK or other countries?
My companies is based in the US, but our customer base is 50% international. The majority of our international customers are from english speaking countries like the UK, AU, NZ, etc. We currently rank well for 2 of our industries core keywords in the US, but are not even on the radar in the UK or AU. I do generate international backlinks, although not as much as the US backlinks (approximately 25% intl, 75% US). Should I purchase localized urls like .co.uk or .com.au and point those at my .com? Any guidance the community could provide would be greatly appreciated?
Intermediate & Advanced SEO | | batchbook0 -
Javascript onclick redirects / porn sites...
We noticed around 7 websites which with domains that were just recently registered (with privacy protection). They are using our website keywords/titles and brand name and the sites are mostly porn / junk sites. They don't link to our website directly but use a javascript onclick redirect which is why we think we aren't seeing them in our backlinks report. We've been in business for over 12 years and haven't come across sites like this before. We recently lost our first page rankings for a few of our highest converting key phrases and have been digging in to possible causes. Just wondering if these sites could be impacting our results, and how to figure out if there are more like this? Examples: nesat.net
Intermediate & Advanced SEO | | EileenCleary
flowmeterdirectory.biz
finnsat.net
dotsjobs.net0 -
Language Detection redirect: 301 or 302?
We have a site offering a voip app in 4 languages. Users are currently 302 redirected from the root page to /language subpages, depending on their browser language. Discussions about the sense of this aside: Is it correct to use a 302 redirect here or should users be 301 redirected to their respective languages? I don't find any guideline on this whatsoever...
Intermediate & Advanced SEO | | zeepartner1 -
Ending URLs in .html versus /
Hi there! Currently all the URLs on my website, even the home page, end it .html, such as http://www,consumerbase.com/index.html Is this bad?
Intermediate & Advanced SEO | | Travis-W
Is there any benefit to this? Should I remove it and just have them end with a forward slash?
If I 301 redirect the old .html URLs to the forward slash URLs, will I lose PA? Thanks!0 -
Code to change country in URL for locale results
How do I change the code in my URL to search in Google by specific location?
Intermediate & Advanced SEO | | theLotter0