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
          • Disallow: /sr/ and Disallow: /si/ - robots.txt
            McTaggart
            McTaggart
            0
            3
            74

          • Is it Bad to Break Up A Site into Multiple Sites?
            SirMax
            SirMax
            0
            3
            181

          • Http://www.domain.com/services/city or http://www.domain.com/city
            Landforce
            Landforce
            1
            5
            163

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

          • What site would be best to push
            TheeDigital
            TheeDigital
            0
            3
            306

          • Best way to develop a WordPress version of your site and then move it?
            KeriMorgret
            KeriMorgret
            0
            3
            471

          • Best way to set up a site with multiple brick and mortor locations across Canada
            oznappies
            oznappies
            0
            9
            861

          • Best Site navigation solution
            StalkerB
            StalkerB
            0
            4
            1.2k

          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