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. My sitemap in Google is coming back with an error

    My sitemap in Google is coming back with an error

    Technical SEO Issues
    8 4 194
    • 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.
    • cschwartzel
      cschwartzel last edited by

      I submitted my xml sitemap to Google Webmaster tools. It is giving an error, not found. 404 Error. But I can't figure out why my site map is signaling a 404. Why? 😞

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

        You have to submit the .XML version and it has to be live in your directory on your server.

        on our site ie:

        The page for users: http://www.boastingbiz.com/sitemap

        The page for the Spiders: http://www.boastingbiz.com/sitemap.xml  <--- Submit the .xml from  wherever you place it on your server.

        hope this helps.

        cschwartzel 1 Reply Last reply Reply Quote 0
        • cschwartzel
          cschwartzel @Bryan_Loconto last edited by

          It is the .xml. Any other ideas? Totally stuck....(first wordpress site I have built)

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

            Hi Courtney,

            Are you suggesting that the sitemap itself is 404ing OR webmasters is in indicating your site has 404's of page that exist on your sitemap?

            If it's the sitemap itself, can you navigate to it directly? Does it render in a browser?

            If it's an error from a page on the sitemap, and the page currently renders there is a good chance it didn't at some stage. If that's the case you can ask google to recrawl it as an individual page, see;

            http://support.google.com/webmasters/bin/answer.py?hl=en&answer=1352276

            Hope this helps.

            Dan

            Bryan_Loconto 1 Reply Last reply Reply Quote 1
            • Bryan_Loconto
              Bryan_Loconto @djlaidler last edited by

              I agree if the page is live in your browser (xml version) then Google should be able to crawl it.

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

                Just because your site has a sitemap doesn't mean it's guaranteed to be located at www/yoursite.com/sitemap.xml, Courteney. What happens when you actually type www.yoursite.com/sitemap.xml in your browser's address bar? I'm betting you'll get a 404, which means your sitemap isn't located/named what you think it is.

                Many WordPress plugins that automatically create xml sitemaps don't put them in the expected standard location with the standard file name! For example, Yoast's WordPress SEO plugin creates its xml sitemap at www.yourdomain.com/sitemap_index.xml. It looks close, but its not the same.

                Double check the sitemap plugin you're using to confirm where it's writing the xml file and then use that address to submit it to both Google and Bing Webmaster Tools.

                It's also best practice to add a directive to the robots.txt file at the root of your site pointing to the correct sitemap.xml location as well. Just add this line at the bottom:

                Sitemap: http://www.yoursite.com/actualsitemapfilename.xml
                

                That address'll be the same one that you were able to successfully submit to GWT.

                Does all that make sense?

                Paul

                P.S. One extra thought, since you mention that this is your first WordPress build. WP doesn't automatically create an xml sitemap for you - you'll have to have installed a plugin or used a 3rd-party tool to do that for you. Sorry if that's obvious to you, but wanted to cover all the bases 🙂

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

                  The address does work in typed into the browser. And I did use an installed plugin to create the sitemap.

                  So if the address works, do you think my next step is to add the robots.txt?

                  Courtney

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

                    It's always a good idea to include the directive in the robots.txt anyway, Courtney, so I'd say yes.

                    If typing the address in your browser works, but putting in that exact same address in GWT results in 404, then I'm stumped. Only thing i can figure is your WMT is experiencing a glitch and you might want o report it in the Google Webmaster forums.

                    If you want to send the site URL by personal message here I can take a last look.

                    Paul

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • Desktop & Mobile XML Sitemap Submitted But Only Desktop Sitemap Indexed On Google Search Console
                      bridget.randolph
                      bridget.randolph
                      0
                      6
                      1.6k

                    • New SEO manager needs help! Currently only about 15% of our live sitemap (~4 million url e-commerce site) is actually indexed in Google. What are best practices sitemaps for big sites with a lot of changing content?
                      Nigel_Carr
                      Nigel_Carr
                      1
                      4
                      106

                    • Google Search Console - Sitemap
                      DickensLawGroup
                      DickensLawGroup
                      0
                      8
                      110

                    • Google Sitemap - How Long Does it Take Google To Index?
                      Chris.Menke
                      Chris.Menke
                      0
                      3
                      2.4k

                    • 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

                    • RSS Feed Errors in Google
                      Cyrus-Shepard
                      Cyrus-Shepard
                      0
                      2
                      661

                    • Sitemap coming up in Google's index?
                      UnderRugSwept
                      UnderRugSwept
                      0
                      5
                      743

                    • Google Webmaster tools error?
                      lavellester
                      lavellester
                      0
                      6
                      463

                    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