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. Sitemap.xml Site multilang

    Sitemap.xml Site multilang

    Technical SEO Issues
    2 2 270
    • 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.
    • mobic
      mobic last edited by

      HI all,

      I have some questions about multilang sitemap.xml. So, we use the same domain subdirectories with gTLDs

      example.com/pt-br/
      example.com/us/
      example.com/es/

      How should I do the sitemap.xml in this case?

      I thought of three alternatives:

      1. Should I do a sitemap_index.xml to each lang and make categories for these sitemaps?

      Examples:
      http://www.example.com/pt-br/sitemap_index.xml
      http://www.example.com/en/sitemap_index.xml
      http://www.example.com/es/sitemap_index.xml

      1. Should I do only one sitemap_index.xml covering all categories of all languages ​​?

      Examples:
      http://www.example.com/sitemap_index.xml
      http://www.example.com/pt-br/sitemap_categorias_1.xml
      http://www.example.com/es/sitemap_categorias_1.xml
      http://www.example.com/us/sitemap_categorias_1.xml

      1. Should I do a sitemap setting all multilang?

      <url><loc>http://www.example.com/us/</loc>
      <xhtml:link <br="">rel="alternate"
      hreflang="es"
      href="http://www.example.com/pt-br/"
      />
      <xhtml:link <br="">rel="alternate"
      hreflang="us"
      href="http://www.example.com/us/"
      />
      <xhtml:link <br="">rel="alternate"
      hreflang="pt-br"
      href="http://www.example.com/pt-br/"
      /></xhtml:link></xhtml:link></xhtml:link></url>

      Thanks for any advice.

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

        Hi Francisco,

        Google suggest to do the sitemap as your third option. Check this article:
        https://support.google.com/webmasters/answer/2620865?hl=en

        My way of doing it, is creating a sitemap for every language, uploaded all of them to the root of the site and create a sitemap stating the latter sitemaps.
        This is an example:

        <sitemapindex<span class="html-attribute"> xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"</sitemapindex<span>><sitemap></sitemap>https://www.domain.com/sitemap-en.xml<sitemap></sitemap>https://www.domain.com/sitemap-pt.xml<sitemap></sitemap>https://www.domain.com/sitemap-es.xml

        Hope it helps.
        GR.

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post
        • If I'm using a compressed sitemap (sitemap.xml.gz) that's the URL that gets submitted to webmaster tools, correct?
          ThompsonPaul
          ThompsonPaul
          0
          6
          1.8k

        • Handling XML Sitemaps for Ad Classified Sites
          MoosaHemani
          MoosaHemani
          0
          4
          225

        • Will sitemap generated in Yoast for a combined wordpress/magento site map entire site ?
          Dan-Lawrence
          Dan-Lawrence
          0
          5
          1.4k

        • Do you need an on page site map as well as an XML Sitemap?
          yeagerd
          yeagerd
          0
          3
          1.6k

        • Can you have a /sitemap.xml and /sitemap.html on the same site?
          ThompsonPaul
          ThompsonPaul
          0
          6
          2.2k

        • XML Sitemap Issue or not?
          Tay1986
          Tay1986
          0
          6
          368

        • Xml Sitemap
          CustomMade
          CustomMade
          0
          6
          679

        • Do we need to manually submit a sitemap every time, or can we host it on our site as /sitemap and Google will see & crawl it?
          askotzko
          askotzko
          0
          7
          4.8k

        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