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. Query on Sitemap xml Root Path

    Query on Sitemap xml Root Path

    Technical SEO Issues
    5 2 192
    • 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.
    • Johny12345
      Johny12345 last edited by

      1. Is it compulsory to have sitemap.xml at this path - abcd.com/sitemap.xml?

      My sitename is abcd.com. Now is it compulsory to have sitemap.xml at this path - abcd.com/sitemap.xml only?

      a) If i take cnd services where path can be like xyz.com/sitemap.xml and then this sitemap i can submit in robot file so it is fine?

      b) What will happen here in webmaster tool as in webmaster tool when we submit sitemap by default it gives us domain name like abcd.com and we have to just add /sitemap.xml

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

        Hi,

        I Believe it's compulsory for a sitemap to be at abcd.com/sitemap.xml.

        Here is a guide on sitemaps and their format for future references: https://www.sitemaps.org/protocol.html

        You tend to only have one sitemap, unless you have a large site then you will need divide the sitemaps across different pages, a general rule of thumb is to keep the sitemap below 50,000 URLs. I'd say one sitemap at abcd.com/sitemap.xml should be enough for a standard website.

        I'm unsure of Question a) if you could repeat that in more detail please.

        Finally, there are two ways to submit a sitemap,

        1. Directly within Google Search Console (previously Webmaster Tools) using the 'Test/Add Sitemap' feature, by adding /sitemap.xml and testing it before submitting it.

        2. Insert the your sitemap line anywhere in your robots.txt file, specifying the path to your sitemap:

        Sitemap: http://example.com/sitemap_location.xml

        You can also find more information and guidelines on sitemaps here: https://support.google.com/webmasters/answer/156184?hl=en&ref_topic=4581190

        Hope that helps.

        Ian

        Johny12345 1 Reply Last reply Reply Quote 1
        • Johny12345
          Johny12345 @Ian_Lewis last edited by

          Hi Ian,

          I have a large ecommerce website whose XML site map is currently located at https://www.abcd.com./sitemap.xml , whereas I want to upload it at new location I.e https://data.abcd.com/sitemap.xml it means on new location which is sudomain, Also if it is OK as per Google guidelines to  upload your sitemap in sudomain rather than main domain then please let me know that in webmaster console how can I upload this new sitemap? Because when I try to upload sitemap in console it ask mandatorily to upload sitemap to be available at root of the website so what next I can do ? Thanks!

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

            Hi,

            What is the main reason for you to upload the sitemap to a new location?

            I also found an article on sitemaps that might help. It says: The XML sitemaps protocol defines that XML sitemap files can not contain URLs from different domains. This includes subdomains and other kinds of variations. You have to keep all URLs to a single domain per XML sitemap.

            Taken from this site https://www.microsystools.com/products/sitemap-generator/help/multiple-domains-xml-sitemaps/

            This includes tutorials on different types of sitemaps.

            Hope this can help further.

            Thanks,

            Ian

            Johny12345 1 Reply Last reply Reply Quote 1
            • Johny12345
              Johny12345 @Ian_Lewis last edited by

              Hi Ian,

              Thanks for your support!

              1 Reply Last reply Reply Quote 0
              • 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

              • Desktop & Mobile XML Sitemap Submitted But Only Desktop Sitemap Indexed On Google Search Console
                bridget.randolph
                bridget.randolph
                0
                6
                1.6k

              • Search Console rejecting XML sitemap files as HTML files, despite them being XML
                SearchDeploy
                SearchDeploy
                0
                5
                89

              • Generating a xml sitemap?
                JVRudnick
                JVRudnick
                1
                4
                128

              • XML Sitemap Generators
                GPainter
                GPainter
                0
                2
                62

              • Do I need an XML sitemap?
                pugh
                pugh
                0
                6
                9.2k

              • How to generate a visual sitemap using sitemap.xml
                Churchill1
                Churchill1
                0
                3
                8.4k

              • Ror.xml vs sitemap.xml
                vijayvasu
                vijayvasu
                0
                3
                2.9k

              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