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. Web Design
    4. Best way to indicate multiple Lang/Locales for a site in the sitemap

    Best way to indicate multiple Lang/Locales for a site in the sitemap

    Web Design
    3 2 750
    • 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.
    • DRSearchEngOpt
      DRSearchEngOpt last edited by

      So here is a question that may be obvious but wondering if there is some nuance here that I may be missing.

      Question:  Consider an ecommerce site that has multiple sites around the world but are all variations of the same thing just in different languages.  Now lets say some of these exist on just a normal .com page while others exist on different ccTLD's.  When you build out the XML Sitemap for these sites, especially the ones on the other ccTLD's, we want to ensure that using

      <loc>http://www.example.co.uk/en_GB/"</loc>

      <xhtml:link<br>rel="alternate"
      hreflang="en-AU"
      href="http://www.example.com.AU/en_AU/"
      />
      <xhtml:link<br>rel="alternate"
      hreflang="en-NZ"
      href="http://www.example.co.NZ/en_NZ/"
      />

      Would be the correct way of doing this.  I know I have to change this for each different ccTLD but it just looks weird when you start putting about 10-15 different language locale variations as alternate links.  I guess I am just looking for a bit of re-affirmation I am doing this right.</xhtml:link<br></xhtml:link<br>

      Thanks!

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

        Maybe the best solution is using a tool like this one by MediaFlow: http://www.themediaflow.com/resources/tools/href-lang-tool/.

        You feed the tool with an .csv file and it returns you with a sitemaps.xml with all the hreflang annotations included.

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

          Yes, you are doing the right thing.  You may also want to look at including Meta Tags in the as well. ()

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Is it Bad to Break Up A Site into Multiple Sites?
            SirMax
            SirMax
            0
            3
            181

          • Responsive Site has "Not Found" Errors for mobile/ and m/ in Google Search Console
            JustinTaylor88
            JustinTaylor88
            1
            5
            1.5k

          • Site structure and Visual Sitemaps
            RyanPurkey
            RyanPurkey
            0
            2
            1.0k

          • Sitemap created on client's Joomla site but it is not showing up on site reports as existing? (Thumbs Up To Answers)
            Dr-Pete
            Dr-Pete
            0
            7
            977

          • Best way to handle Spanish/English WEBSITE
            ZephSnapp
            ZephSnapp
            0
            3
            334

          • Best Way to Remove Mutltiple XML Sitemaps From Multiple Subdomains
            TakeshiYoung
            TakeshiYoung
            0
            2
            154

          • Best Way to Re-Direct traffic from existing site to new site?
            mrdavidingram
            mrdavidingram
            0
            9
            465

          • Given the lastest Google update, should I rewrite my Flash site or try to present an alternative HTML/CSS site?
            W3designer
            W3designer
            0
            3
            446

          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