The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

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

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Hreflang Implementation

    Hreflang Implementation

    Technical SEO Issues
    5 3 546
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • buiserik
      buiserik last edited by

      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 Kingdom

      http://www.homepage.com/enus/default.html"/>
      Language: English - Country: United States

      http://www.homepage.com/nl/default.html"/>
      Language: Dutch - Country: Netherlands

      http://www.homepage.com/nlbe/default.html"/>
      Language: Dutch - Country: Belgium

      http://www.homepage.com/fr/default.html"/>
      Language: French - Country: All french speaking countries

      http://www.homepage.com/de/default.html"/>
      Language: German - Country: All german speaking countries

      http://www.homepage.com/es/camisa-a-medida.html"/>
      Language: Spanish - Country: Spain

      http://www.homepage.com/enen/default.html" />
      Language: English - Country: All other countries

      Does 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?

      1 Reply Last reply Reply Quote 0
      • MattAntonino
        MattAntonino last edited by

        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.

        buiserik 1 Reply Last reply Reply Quote 2
        • buiserik
          buiserik @MattAntonino last edited by

          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?

          buiserik gfiorelli1 2 Replies Last reply Reply Quote 0
          • buiserik
            buiserik @buiserik last edited by

            No one able to help me out on this one?

            1 Reply Last reply Reply Quote 0
            • gfiorelli1
              gfiorelli1 @buiserik last edited by

              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:

              1. because they don't harm a site;
              2. 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.

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post
              • General questions about implementing hreflang using XML sitemap
                victor.celer
                victor.celer
                0
                9
                80

              • Setting up hreflang tags
                Roman-Delcarmen
                Roman-Delcarmen
                0
                6
                401

              • Hreflangs
                StephanSolomonidis
                StephanSolomonidis
                0
                2
                50

              • Hreflang no reciprocal
                NickJasuja
                NickJasuja
                0
                5
                1.2k

              • Use hreflang language or hreflang language & country code
                jorisbrabants
                jorisbrabants
                0
                3
                88

              • Advanced Hreflang !
                TeespringMoz
                TeespringMoz
                0
                3
                141

              • Hreflang tag implentation
                ahyde
                ahyde
                0
                15
                765

              • How do i implement event tracking
                seoug_2005
                seoug_2005
                0
                8
                1.3k

              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
              • Digital Marketers
              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 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
              • Accessibility
              • Terms of Use
              • Privacy