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. Siemap.xml appearing in SERP

    Siemap.xml appearing in SERP

    Technical SEO Issues
    4 3 1.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.
    • Socialdude
      Socialdude last edited by

      My sitemap.xml was appearing in the google serp for certain keywords (&  not my actual page onsite). Please see image.

      I recently blocked my sitemap.xml with a robots.txt exclusion but now the sitemap.xml is not getting crawled in google webmaster. Is this the correct method of excluding the sitemap.xml for the serp?

      User-agent: *
      Disallow: /assets/cache/
      Disallow: /assets/docs/
      Disallow: /assets/export/
      Disallow: /assets/import/
      Disallow: /assets/modules/
      Disallow: /assets/plugins/
      Disallow: /assets/snippets/
      Disallow: /manager/
      Disallow: /sitemap.xml
      Sitemap: http://bryansryan.ie/sitemap.xml
      

      Any suggestions what should be done here? thanks.

      nQo2g.png

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

        Is it ranking for some keywords or did you simply search for you sitemap? In that case I really dont see the problem. Then I rather google indexed my sitemap.

        Socialdude 1 Reply Last reply Reply Quote 1
        • Socialdude
          Socialdude @SuperlativB last edited by

          from the image you will see I googled - Kyocera Black and White Printers but the sitemap.xml is coming up in the SERP and not my actual page. It's pointless having the sitemap.xml appear in the SERP.

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

            you could try blocking via x-robots in the htaccess file:

            http://www.blackdog.ie/blog/remove-sitemaps-from-serps/

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

            • Old URLs Appearing in SERPs
              RosemaryB
              RosemaryB
              1
              9
              4.1k

            • Are mobile annotation in PC xml sitemaps a replacement for mobile xml sitemaps?
              bridget.randolph
              bridget.randolph
              0
              4
              377

            • How do I know my SERP
              StreamlineMetrics
              StreamlineMetrics
              0
              4
              417

            • Different serps
              jwdl
              jwdl
              0
              3
              224

            • Xml Sitemap
              CustomMade
              CustomMade
              0
              6
              679

            • Development site accidentally got indexed and now appears in SERPs. How to fix?
              KeriMorgret
              KeriMorgret
              0
              6
              2.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