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

    Xml Sitemap

    Technical SEO Issues
    6 4 679
    • 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.
    • Ideas-Money-Art
      Ideas-Money-Art last edited by

      Hi mozzers,

      I am about to submit a sitemap for one of my clients via webmaster tools. The issue is that I have way too many urls that I don't want them to be indexed by Google such as testing pages, auto generated pages...

      Is there way to remove certain URL from the XML sitemap or is this impossible?

      If impossible, is the only way to control these urls is to "No index" all these pages that  i don't want the search engine to see?

      Thanks Mozzers,

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

        Like you mentioned, you could either use robots.txt, or submit  a URL removal request through webmaster tools. I've used both methods.

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

          You should absolutely be able to exercise complete control over what URLs are contained in your site map. It is dependent upon your sitemap software. There are hundreds of software solutions available.

          Regardless of the site map, you should definitely no index the pages you do not wish to appear in search results. A robots.txt entry is definitely not the best solution.

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

            Great question!  You can manually remove all pages from the sitemap, by opening it up in a text editor of your choice, removing offending entries, and saving the file.  Make sure you use a simple text editor like notepad on windows or textwrangler on mac.

            It is best to do this before your submission, rather then add pages which you know you don't want indexed and then have to ask google to remove them.

            Ideas-Money-Art 1 Reply Last reply Reply Quote 1
            • Ideas-Money-Art
              Ideas-Money-Art @CustomMade last edited by

              Hi Greg,

              Since I am not an expert into sitemaps yet, once i finish removing URLs I don t want, should I just save the text editor document and then how do I submit this doc into webmaster tool?

              Is it just "add sitemap" and put the name of the doc "www.example.com/sitemap.xml"? or is there another manipulation I should be aware of?

              Thank you,

              CustomMade 1 Reply Last reply Reply Quote 0
              • CustomMade
                CustomMade @Ideas-Money-Art last edited by

                That is correct, you just submit as you would normally.  There are two ways to submit the file:

                1. Via the webmaster tools interface.  Have you created your webmaster tools account yet?  Optimization -> Sitemaps -> Add Sitemap

                2. By referencing it in your robots.txt.  Just add the following on a new line: Sitemap: http://www.yourdomain.com/sitemap.xml

                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

                • 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

                • XML Sitemap Issue or not?
                  Tay1986
                  Tay1986
                  0
                  6
                  368

                • WordPress blog and XML sitemap
                  hawkvt1
                  hawkvt1
                  0
                  7
                  497

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

                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