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. Can you have a /sitemap.xml and /sitemap.html on the same site?

    Can you have a /sitemap.xml and /sitemap.html on the same site?

    Technical SEO Issues
    6 4 2.2k
    • 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.
    • PioneerServices
      PioneerServices last edited by

      Thanks in advance for any responses; we really appreciate the expertise of the SEOmoz community!

      My question: Since the file extensions are different, can a site have both a /sitemap.xml and /sitemap.html both siting at the root domain?

      For example, we've already put the html sitemap in place here: https://www.pioneermilitaryloans.com/sitemap

      Now, we're considering adding an XML sitemap. I know standard practice is to load it at the root (www.example.com/sitemap.xml), but am wondering if this will cause conflicts.

      I've been unable to find this topic addressed anywhere, or any real-life examples of sites currently doing this.

      What do you think?

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

        Nope, won't cause any problems. The xml sitemap is what you will submit to G and search engines while the HTML one is for your site visitors who want to see all your pages (although it will be crawled and indexed as well).

        1 Reply Last reply Reply Quote 1
        • ThompsonPaul
          ThompsonPaul last edited by

          As Oleg says - not a problems at all. What you're proposing to do is a pretty standard implementation used by most websites out there.

          XML sitemaps are a very specific configuration of data built to a standard that the Search Engines all agreed on - even the naming convention. Spiders are programmed to look for the whole filename (specifically including the .xml suffix) not just the first part of the file name. And yea, connecting to them inside your Webmaster Tools accounts is an extra signal for where the search engines should find them.

          Paul

          PioneerServices 1 Reply Last reply Reply Quote 0
          • BlueprintMarketing
            BlueprintMarketing last edited by

            Just like Oleg & Paul I agree 100% your site may have and it will probably benefit from having both a site map which is a nice feature in HTML format and one in XML format as they are not used for the same purpose by Google nor by individuals so you may safely create a regular webpage in HTML and call it whatever you like if it ends in.XML it is not a forward facing webpage it has a separate use and that uses to tell Google's crawler where you would like it to go now keep in mind Google does not always listen to what we want but site maps can be helpful.

            I hope this was of help to you

            sincerely,

            Thomas

            1 Reply Last reply Reply Quote 1
            • PioneerServices
              PioneerServices @ThompsonPaul last edited by

              So if I'm understanding you correctly, there's no technical issues with having two items with the same url, but different file extensions, coexisting? I was unable to find any examples of other sites doing this, which is making me question.

              I mean, what we're proposing is two separate pieces of content that resolve as:

              • https://www.pioneermilitaryloans.com/sitemap
              • https://www.pioneermilitaryloans.com/sitemap.xml

              I want that to work, but it's just amazing to me that it doesn't cause any issues.

              ThompsonPaul 1 Reply Last reply Reply Quote 0
              • ThompsonPaul
                ThompsonPaul @PioneerServices last edited by

                As all 3 of us have said here, Pioneer, there is no issue with setting things up the way you are proposing. Can't make it any clearer than that.

                To answer your specific point - /sitemap and /sitemap.xml are categorically NOT seen as the same URL by search engines. They are absolutely considered two different pages. Your statement "...two items with the same url, but different file extensions..." is a non-sequitur. If the URLs have different file extensions, they are by definition NOT the same URL. The file extension (or lack thereof) is an integral part of the URL.

                Since 3 different people have given you the same answer and you still don't believe us, why not simply test for yourself?

                • Implement the two files as above, then use Google Webmaster Tools to report your XML sitemap location, and confirm that it's finding and recognizing it correctly.
                • Then use your browser to go to the URL of the regular sitemap and you'll see that it renders the html version of your sitemap map just fine.

                Paul

                1 Reply Last reply Reply Quote 2
                • 1 / 1
                • First post
                  Last post
                • How bad is it to have duplicate content across http:// and https:// versions of the site?
                  RG_SEO
                  RG_SEO
                  0
                  4
                  155

                • If I want clean up my URLs and take the "www.site.com/page.html" and make it "www.site.com/page" do I need a redirect?
                  Booj
                  Booj
                  0
                  4
                  113

                • Do I use /es/, /mx/ or /es-mx/ for my Spanish site for Mexico only
                  RoxBrock
                  RoxBrock
                  0
                  3
                  147

                • Correct linking to the /index of a site and subfolders: what's the best practice? link to: domain.com/ or domain.com/index.html ?
                  CleverPhD
                  CleverPhD
                  0
                  4
                  245

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

                • How can I change the page title "two" (artigos/page/2.html) in each category ?
                  sprynewmedia
                  sprynewmedia
                  0
                  3
                  118

                • Ideally should a 301 or 302 redirect be used from https://www.site.com to http://www.site.com? Is there a valid reason to use a 302 in this situation or would using a 301 have any negative impact on seo?
                  Unity
                  Unity
                  0
                  2
                  317

                • 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