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.

      What is your Brand Authority?
      Moz

      What is your Brand Authority?

      Check yours now
    • 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
    5557
    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

      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

        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
        • GastonRiera
          Gaston Riera @Avid_Demand last edited by

          that's corect.

          1 Reply Last reply Reply Quote 1
          • Avid_Demand
            Avid_Demand Subscriber @GastonRiera last edited by

            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 Reply Quote 0
            • GastonRiera
              Gaston Riera @Avid_Demand last edited by

              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 Reply Quote 1
              • Avid_Demand
                Avid_Demand Subscriber @GastonRiera last edited by

                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 Reply Quote 0
                • GastonRiera
                  Gaston Riera @Avid_Demand last edited by

                  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 Reply Quote 0
                  • Avid_Demand
                    Avid_Demand Subscriber @GastonRiera last edited by

                    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 Reply Quote 0
                    • GastonRiera
                      Gaston Riera last edited by

                      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 Reply Quote 1
                      • 1 / 1
                      • First post
                        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

                      • moon-boots

                        Traffic drop after hreflang tags added

                        We operate one company with two websites each serving a different location, one targeting EU customers and the other targeting US customers. thespacecollective.com (EU customers) thespacecollective.com/us/ (US customers) We have always had canonical tags in place, but we added the following hreflang tags two weeks ago (apparently this is best practice); EU site (thespacecollective.com) US site (thespacecollective.com/us/) Literally the same day we added the above hreflang tags our traffic dropped off a cliff (we have lost around 70-80% on the EU site, and after a minor recovery, 50% on the US site). Now, my first instinct is to remove the tags entirely and go back to just using canonical, but if this is truly best practice, that could do more damage than good. This is the only change that has been made in recent weeks regarding SEO. Is there something obvious that I am missing because it looks correct to me?

                        International SEO | | moon-boots
                        0
                      • lcourse

                        Google does not index UK version of our site, and serves US version instead. Do I need to remove hreflanguage for US?

                        Webmaster tools indicates that only 25% of pages on our UK domain with GBP prices is indexed.
                        We have another US domain with identical content but USD prices which is indexed fine. When I search in google for site:mydomain I see that most of my pages seem to appear, but then in the rich snippets google shows USD prices instead of the GBP prices which we publish on this page (USD price is not published on the page and I tested with an US proxy and US price is nowhere in the source code). Then I clicked on the result in google to see cached version of page and google shows me as cached version of the UK product page the US product page. I use the following hreflang code: rel="alternate" hreflang="en-US" href="https://www.domain.com/product" />
                        rel="alternate" hreflang="en-GB" href="https://www.domain.co.uk/product" /> canonical of UK page is correctly referring to UK page. Any ideas? Do I need to remove the hreflang for en-US to get the UK domain properly indexed in google?

                        International SEO | | lcourse
                        0
                      • ennovators

                        Hreflang for bilingual website in the same region/location

                        Hi everyone, got a quick question concerning the hreflang tag. I have a website with 2 different language versions targeting to the same region(Reason: The area is bilingual however not everyone speaks the other language fluently) Question:
                        Can I use hreflang in that case like: Many thanks in advance

                        International SEO | | ennovators
                        0
                      • edward-may

                        HELP: Incorrect Meta Tag description showing for the wrong search results

                        Hi Guys I'm stuck here! I have update the hreftags, updated the sitemaps. I have 3 top level domains and my zenory.com site is showing for the home page the wrong meta tag description, as you can see in the attachement the meta tag is showing the new zealand site meta tag description which is for zenory.co.nz Anyone know what might be going on here? I have also fetched the home page through WMT as well and its still returning the same results any advice would be much appreciated! Thanks

                        International SEO | | edward-may
                        0
                      • mat-relevance

                        Is there any reason to get a massive decrease on indexed pages?

                        Hi, I'm helping on SEO for a big e-commerce in LatAm and one thing we've experienced during the last months is that our search traffic had reduced and the indexed pages had decreased in a terrible way. The site had over 2 Million indexed pages (which was way too much, since we believe that around 10k would be more than enough to hold the over 6K SKUs) but now this number has decreased to less than 3K in less than 2 months. I've also noticed that most of the results in which the site is still appearing are .pdf or .doc files but not actual content on the website. I've checked the following: Robots (there is no block, you can see that on the image as well) Webmaster Tools Penalties Duplicated content I don't know where else to look for. Can anyone help? Thanks in advance! cpLwX1X

                        International SEO | | mat-relevance
                        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 | | Ben.JD
                        0
                      • seoec

                        Showing different content according to different geo-locations on same URL

                        We would like our website to show different content according to different Geo-locations (but in the same language).  For example, if www.mywebsite.com is accessed from the US, it would show text (in English) appealing to North Americans, but, if accessed from Japan, it would show text (also in English) that appeals more to Japanese people. In the Middle East, we would like the website to show different images than those shown in the US and Asia. Our main concern is that we would like to keep the same URL. How will Google index these pages? Will it index the www.mywebsite.com (Japan version) in its Asia archives and the www.mywebsite.com (US version) in its North American archives? Will Google penalise us for showing different content across Geo-locations on the same URL? What if a URL is meant to show content only in Japan? Are there any other issues that we should be looking out for? Kindest Regards L.B.

                        International SEO | | seoec
                        0
                      • MartijnHoving82

                        Upper case or/and lower case in rel="alternate" hreflang

                        Hi Mozzers, I have a question about the rel="alternate" hreflang tag, with an example. When I use two subfolders for two different countries/languages, for instance www.domain.com/nl-nl/ and www.domain.com/nl-en/ (for the English version) and I want to use the rel="alternate" hreflang tag, do I need to follow the ISO standards concerning Uppercase country code and Lowercase language code (en-NL)? Or is it okay to use the Lowercase country and language code (en-nl), since we also use this in the URL of the Subfolder. What does Google prefer? Thanks in advance.

                        International SEO | | MartijnHoving82
                        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
                      • 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.