undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • SEO Q&A

      Insights & discussions from an SEO community of 500,000+.

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

Browse the forum for helpful insights and fresh discussions about all things SEO.

  1. Home
  2. SEO Tactics
  3. International SEO
  4. Hreflang tags and canonical tags - might be causing indexing and duplicate content issues

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 tags and canonical tags - might be causing indexing and duplicate content issues

International SEO
3
9
5.6k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • Avid_Demand
    Avid_Demand Subscriber last edited by Mar 21, 2018, 4:40 PM

    Hi,

    Let's say I have a site located at https://www.example.com, and also have subdirectories setup for different languages. For example:

    https://www.example.com/es_ES/

    https://www.example.com/fr_FR/

    https://www.example.com/it_IT/

    My Spanish version currently has the following hreflang tags and canonical tag implemented:

    My robots.txt file is blocking all of my language subdirectories. For example:

    User-agent:*

    Disallow: /es_ES/

    Disallow: /fr_FR/

    Disallow: /it_IT/

    This setup doesn't seem right. I don't think I should be blocking the language-specific subdirectories via robots.txt

    What are your thoughts?

    Does my hreflang tag and canonical tag implementation look correct to you? Should I be doing this differently?

    I would greatly appreciate your feedback and/or suggestions.

    1 Reply Last reply Reply Quote 0
    • gfiorelli1
      gfiorelli1 last edited by May 31, 2018, 5:35 AM May 31, 2018, 5:35 AM

      Hi... I'm sorry to tell you that the answer offered by Gaston is not totally correct.

      So, in your Spanish page you have these hreflang and canonical annotations:

      This is not correct because you are not adding also the self-referential hreflang annotation

      Google is very precise about this, and it states its need in the help pages as well in many Googlers tweets and webmaster office hangouts.

      The rel="canonical" is correct. Remember that the self-referential and the alternative href URLs must always be canonicals.

      Finally, regarding the subfolders blocked via robots.txt, yes! that's totally incorrect:

      if you're blocking Googlebot from accessing the Spanish, French and Italian subfolders, then Googlebot won't be able to parse the code of their pages, hence it won't be able to see also the hreflang annotations... with obvious erroneous consequences.

      1 Reply Last reply Reply Quote 5
      • topic:timeago_earlier,2 months
      • GastonRiera
        Gaston Riera @Avid_Demand last edited by Mar 21, 2018, 7:14 PM Mar 21, 2018, 7:14 PM

        that's corect.

        1 Reply Last reply Reply Quote 1
        • Avid_Demand
          Avid_Demand Subscriber @GastonRiera last edited by Mar 21, 2018, 7:13 PM Mar 21, 2018, 7:13 PM

          Yes. example.com/en-US/ redirects 301 to example.com

          So, when referencing that version in hreflang will it look like this?

          Is this correct?

          GastonRiera 1 Reply Last reply Mar 21, 2018, 7:14 PM Reply Quote 0
          • GastonRiera
            Gaston Riera @Avid_Demand last edited by Mar 21, 2018, 7:07 PM Mar 21, 2018, 7:07 PM

            So, every page of example.com/en-US/ redirects 301 to example.com/ ?

            If that's the case, then there is no reason in having that folder (/en-US/), just when configuring Hreflang for en-US use the URL without that folder

            Avid_Demand 1 Reply Last reply Mar 21, 2018, 7:13 PM Reply Quote 1
            • Avid_Demand
              Avid_Demand Subscriber @GastonRiera last edited by Mar 21, 2018, 7:05 PM Mar 21, 2018, 7:05 PM

              What do you mean by "exactly the same then there should not be 2 sites"?

              My https://www.example.com/en-US/ 301 redirects to https://www.example.com

              Thoughts?

              GastonRiera 1 Reply Last reply Mar 21, 2018, 7:07 PM Reply Quote 0
              • GastonRiera
                Gaston Riera @Avid_Demand last edited by May 31, 2018, 5:35 AM Mar 21, 2018, 6:31 PM

                Yeap, those implementations are correct.

                in order to avoid duplicate content between different language/countries websites, in each page that is present on each site, there should be their corresponding hreflang tag.

                In your case:
                And for a sample page: https://www.smarttechMKT.com/es-ES/gastonriera-espanol

                NOTE, in the case that site.com and site.com/en-us/ are exactly the same then there should not be 2 sites. Just the one without the folder and hreflang tag with en-US should point to that
                Hope it helps.
                Best luck.
                GR

                Avid_Demand 1 Reply Last reply Mar 21, 2018, 7:05 PM Reply Quote 0
                • Avid_Demand
                  Avid_Demand Subscriber @GastonRiera last edited by Mar 21, 2018, 6:18 PM Mar 21, 2018, 6:18 PM

                  Thank you for the response, Gaston! I really appreciate it.

                  So you are certain that my hreflang and canonical tags are implemented correctly? For example, my Spanish version (https://www.example.com/es_ES/😞

                  Is this implementation correct?

                  Also, will I have any duplicate content issues with these different language versions?

                  GastonRiera 1 Reply Last reply Mar 21, 2018, 6:31 PM Reply Quote 0
                  • GastonRiera
                    Gaston Riera last edited by Mar 21, 2018, 7:17 PM Mar 21, 2018, 5:37 PM

                    Hello there,

                    Watch out your question, there is a site there. If its your clients, edit it.

                    Canonical and hreflang seems OK. 
                    Blocking other languages/countries is wrong. There you are allowing google to see ONLY the us version.

                    For further reading, take a look at these articles:
                    Hreflang:
                    Multi-regional and multilingual sites - Google Search Console
                    International checklist - Moz Blog
                    Using the correct hreglang tag - Moz Blog
                    Guide to international website expansion - Moz Blog
                    Tool for checking hreflang anotations - Moz Blog Canonicals:
                    SEO Best Practices for Canonical URLs + the Rel=Canonical Tag - Whiteboard Friday Consolidate duplicate URLs - Google Search Console Help

                    Hope it helps.
                    Best Luck.
                    GR.

                    Hope it helps.
                    Best luck.
                    GR.

                    Avid_Demand 1 Reply Last reply Mar 21, 2018, 6:18 PM Reply Quote 1
                    • 1 / 1
                    1 out of 9
                    • First post
                      1/9
                      Last post

                    Got a burning SEO question?

                    Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                    Start my free trial


                    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.

                    • See all categories

                    Related Questions

                    • Verz

                      Why Doesn't Google Use My Title Tag and Meta Description?

                      Hi fellow Moz SEOs, Need your URGENT help! We set an optimised title & meta description for our client websites. These titles are approved by our clients. Before somedays, they checked on Google, noticed the title & meta description were not the same. Next moment, they notified me about this issue. The title & meta description looks fine when I checked the source code. So, why Google use title & meta description differently? For example: Title approved by client: Top Specialist Divorce & Family Lawyer - Yeo & Associates LLC
                      Google set our title: Yeo & Associates LLC: Top Specialist Divorce & Family Lawyer Title approved by client: Filing For Divorce Online in Singapore | DivorceBureau®
                      Google set our title: DivorceBureau®: Filing For Divorce Online in Singapore Title approved by client: Halal Buffet & Bento/Packet Meals Event Caterer Singapore | Foodtalks
                      Google set our title: Foodtalks - Halal Buffet & Bento/Packet Meals Event Caterer Singapore Title approved by client: Child Care Centre in Singapore| Top Preschool | Carpe Diem
                      Google set our title: Carpe Diem: Child care Centre in Singapore| Top Preschool Every day, they are requesting me to update Google's title with their approved title. Also, asking me these questions.
                      Why did this happen?
                      Why didn't set their recommended title? Is there any way to set our approved titles? Please, help me to find the solution. ASAP Thanks in advance!

                      International SEO | Jan 12, 2021, 12:52 AM | Verz
                      0
                    • Avid_Demand

                      Using same URL for both "en" and "en-us" hreflang tags

                      Hi,I have a question. Is it okay if I use the same URL for both "en" and "en-us" hreflang tags? For example, for my en-us page: Is this okay with Google? What are your thoughts on this?

                      International SEO | Nov 12, 2020, 11:41 PM | Avid_Demand
                      0
                    • gravymatt-se

                      Should Hreflang x-default be on every page of every country for an International company?

                      UPDATED 4/29/2019 4:33 PM I had made to many copy and pastes. Product pages are corrected Upon researching the hreflang x-default tag, I am getting some muddy results for implementation on an international company site  older results say just homepage or the country selector but…. My Question/Direction going forward for the International Site I am working on:  I believe I can to put x-default all the pages of every country and point it to the default language page for areas that are not covered with our current sites. Is this correct? From my internet reading, the x-default on every page is not truly necessary for Google but it will be valid implemented. My current site setup example:
                      https://www.bluewidgets.com Redirects to https://www.bluewidgets.com/us/en (functions as US/Global) Example Countries w/ code Site:- 4 countries/directories US/Global, France, Spain Would the code sample below be correct? https://www.bluewidgets.com/us/en/ (functions as US/Global) US/Global Country Homepage - https://www.bluewidgets.com/us/en/ US/Global Country Product Page(s) This would be for all products - https://www.bluewidgets.com/us/en/whizzer-5001/ http://www.bluewidgets.com/us/en (functions for France) France Country Homepage - https://www.bluewidgets.com/fr/fr/ France Country Product Page(s) This would be for all products- https://www.bluewidgets.com/es/es/whizzer-5001 http://www.bluewidgets.com/us/en (functions as Spain) Spain Country Homepage - https://www.bluewidgets.com/es/es/ Spain Country Product Page(s) This would be for all products - https://www.bluewidgets.com/es/es/whizzer-5001 Thanks for the spot check Gravy

                      International SEO | Apr 30, 2019, 7:01 PM | gravymatt-se
                      0
                    • spjain81

                      Correct Hreflang & Canonical Tags for Multi-Regional Website English Language Only having URL Parameters

                      Dear friends, We have a multi-regional website in English language only having the country selector on the top of each page and it adds countrycode parameters on each url. Website is built in Magento 1.8 and having 1 store with multiple store views. There is no default store set in Magento as I discussed with developer. Content is same for all the countries and only currency is changed. In navigation there are urls without url parameters but when we change store from any page it add parameters in the url for same page hence there are total 7 URLs. 6 URLs for each page (with country parameters) and 1 master url (without parameters) and making content duplicity. We have implemented hreflang tags on each page with url parameters but for canonical we have implemented master page url as per navigation without url parameters Example on this page. I think this is correct for master page but we should use URL parameters in canonical tags for each counry url too and there should be only 1 canonical tag on each country page url. Currently all the country urls are having master page canoncial tag as per the example. Please correct me if I am wrong and **in this case what has to be done for master page? **as google is indexing the pages without parameters too. We are also using GEOIP redirection for each store with country IP detection and for rest of the countries which are not listed on the website we are redirecting to USA store. Earlier it was 301 but we changed it to 302. Hreflang tags are showing errors in SEMRush due to redirection but in GWT it's OK for some pages it's showing no return tags only. Should I use **x-default tags for hreflang and country selector only on home page like this or should I remove the redirection? **However some of the website like this using redirection but header check tool doesn't show the redirection for this and for our website it shows 302 redirection. Sorry for the long post but looking for your support, please.

                      International SEO | Apr 18, 2019, 12:43 PM | spjain81
                      0
                    • muzzmoz

                      How to avoid duplication across multiple country domains

                      Here's the scenario: I have a client currently running one Shopify site (AU) They want to launch three more country domains (US, UK and EU) They want each to be a standalone site, primarily so the customers can purchase in their local currency, which is not possible from a single Shopify site The inventory is all from the same source The product desscriptions will all be the same as well Question: How do we avoid content duplication (ie. how will canonical tags work in this scenario)?

                      International SEO | Dec 7, 2016, 12:22 PM | muzzmoz
                      0
                    • ABullis

                      Hreflang Alternate & Pagination

                      Hi everybody, So I'm setting up hreflang tags on an ecommerce site. The sites are in the USA and Canada. The Canadian site will have fewer products than the American site, meaning that there won't be as many pages in each category as there are on the American site. What is the correct way to handle hreflang tags on these extra category pages? To put this another way, the American site may have a category with 3 pages of products, while the Canadian equivalent only has 2 pages of products. What happens to this extra American category page (example.com/widget-category/page-3) ? Does it get an hreflang tag linking to the first page of the equivalent Canadian category (example.ca/widget-category/)? Does it not get any hreflang tags because it has no true Canadian counterpart? Does it matter at all if it has a canonical tag pointing to the first page in the series anyway (example**.com**/widget-category/)? Thanks, Andrew B.

                      International SEO | Apr 6, 2016, 5:31 PM | ABullis
                      0
                    • peteboyd

                      What is the proper way to setup hreflang tags on my English and Spanish site?

                      I have a full English website at http://www.example.com and I have a Spanish version of the website at http://spanish.example.com but only about half of the English pages were translated and exist on the Spanish site. Should I just add a sitemap to both sites with hreflang tags that point to the correct version of the page? Is this a proper way to set this up? I was going to repeat this same process for all of the applicable URLs that exist on both versions of the website (English and Spanish). Is it okay to have hreflang="es" or do I need to have a country code attached as well? There are many Spanish speaking countries and I don't know if I need to list them all out. For example hreflang="es-bo" (Bolivia), hreflang="es-cl" (Chile), hreflang="es-co" (Columbia), etc... Sitemap example for English website URL:
                      <url><loc>http://www.example.com/</loc></url> Sitemap example for Spanish website URL:
                      <url><loc>http://spanish.example.com/</loc></url> Thanks in advance for your feedback and help!

                      International SEO | Sep 29, 2014, 7:44 PM | peteboyd
                      0
                    • Ben.JD

                      If I redirect based on IP will Google still crawl my international sites if I implement Hreflang

                      We are setting up several international sites. Ideally, we wouldn't set up any redirects, but if we have to (for merchandising reasons etc) I'd like to assess what the next best option would be. A secondary option could be that we implement the redirects based on IP. However, Google then wouldn't be able to access the content for all the international sites (we're setting up 6 in total) and would only index the .com site. I'm wondering whether the Hreflang annotations would still allow Google to find the International sites? If not, that's a lot of content we are not fully benefiting from. Another option could be that we treat the Googlebot user agent differently, but this would probably be considered as cloaking by the G-Man. If there are any other options, please let me know.

                      International SEO | Jan 2, 2014, 4:22 PM | Ben.JD
                      0

                    Get started with Moz Pro!

                    Unlock the power of advanced SEO tools and data-driven insights.

                    Start my free trial
                    Products
                    • Moz Pro
                    • Moz Local
                    • Moz API
                    • Moz Data
                    • STAT
                    • Product Updates
                    Moz Solutions
                    • SMB Solutions
                    • Agency Solutions
                    • Enterprise Solutions
                    Free SEO Tools
                    • Domain Authority Checker
                    • Link Explorer
                    • Keyword Explorer
                    • Competitive Research
                    • Brand Authority Checker
                    • Local Citation Checker
                    • MozBar Extension
                    • MozCast
                    Resources
                    • Blog
                    • SEO Learning Center
                    • Help Hub
                    • Beginner's Guide to SEO
                    • How-to Guides
                    • Moz Academy
                    • API Docs
                    About Moz
                    • About
                    • Team
                    • Careers
                    • Contact
                    Why Moz
                    • Case Studies
                    • Testimonials
                    Get Involved
                    • Become an Affiliate
                    • MozCon
                    • Webinars
                    • Practical Marketer Series
                    • MozPod
                    Connect with us

                    Contact the Help team

                    Join our newsletter
                    Moz logo
                    © 2021 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                    • Accessibility
                    • Terms of Use
                    • Privacy

                    Looks like your connection to Moz was lost, please wait while we try to reconnect.