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. XML Sitemap Issue or not?

    XML Sitemap Issue or not?

    Technical SEO Issues
    6 3 368
    • 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.
    • Tay1986
      Tay1986 last edited by

      Hi Everyone,

      I submitted a sitemap within the google webmaster tools and I had a warning message of 38 issues.

      Issue: Url blocked by robots.txt.

      Description: Sitemap contains urls which are blocked by robots.txt.

      Example: the ones that were given were urls that we don't want them to be indexed: Sitemap: www.example.org/author.xml

      Value: http://www.example.org/author/admin/

      My issue here is that the number of URL indexed is pretty low and I know for a fact that Robot.txt aren't good especially if they block URL that needs to be indexed. Apparently the URLs that are blocked seem to be URLs that we don't to be indexed but it doesn't display all URLs that are blocked.

      Do you think i m having a major problem or everything is fine?What should I do? How can I fix it?

      FYI: Wordpress is what we use for our website

      Thanks

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

        The first question i would ask is how big is the difference. If the difference is a large in the # of pages on your site and the ones indexed by Google, then you have an issue. The blocked pages might be the ones linking to the ones that have not been indexed and causing issues. Try removing the no follow on those pages and then resubmit your sitemap and see if that fixes the issue. Also double check your site map to make sure you have correctly added all the pages in it.

        Tay1986 1 Reply Last reply Reply Quote 0
        • Tay1986
          Tay1986 @SEO5Team last edited by

          Hi

          when generating sitemap there are 46 URLs detected by xml-sitemaps.com but when adding the sitemap to WMT only 12 get submitted and 5 are indexed which is really kind of worrying me. This might be because of the xml sitemap plugin that I installed. May be something is wrong with my settings(doc attached 1&2)

          I am kind of lost especially that SEOmoz hasn't detected any URLs blocked by Robot.txt

          It would be great if you could tell me what should I do next ?

          Thanks

          zYmVB.png

          SEO5Team 1 Reply Last reply Reply Quote 0
          • SEO5Team
            SEO5Team @Tay1986 last edited by

            Lisa, try checking manually which URL is not getting indexed in Google. Make sure you do not have any no follows on those pages. If all the pages are connected / linked together, then Google will crawl your whole site eventually, just a matter of time.

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

              Lisa

              I would honestly switch to the Yoast SEO plugin. It handles the SEO (and robots.txt) a lot better, as well as the XML sitemaps all within that one plugin.

              I'd check out my guide for setting up WordPress for SEO on the moz blog.

              Most WP robots.txt files will look like this;

              User-agent: *
              Disallow: /wp-admin/
              Disallow: /wp-includes/
              

              And that's it.

              You could always just try changing yours to the above setting first, 
              

              before switching to Yoast SEO - I bet that would clear up

              the sitemap issues.
              

              Hope that helps!

              -Dan
              ```
              Tay1986 1 Reply Last reply Reply Quote 1
              • Tay1986
                Tay1986 @evolvingSEO last edited by

                Hi Dan

                Thanks for your answer. Would you really recommend using the plugin instead of just uploading the xml sitemap directly to the website's root directory? If yes why?

                Thanks

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • .xml sitemap showing in SERP
                  Kyleroe95
                  Kyleroe95
                  0
                  3
                  92

                • 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

                • XML Sitemap Creation
                  Jeff_Lucas
                  Jeff_Lucas
                  0
                  4
                  145

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

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

                • 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