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. Add selective URLs to an XML Sitemap

    Add selective URLs to an XML Sitemap

    Technical SEO Issues
    7 3 230
    • 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.
    • AB_Newbie
      AB_Newbie last edited by

      Hi!

      Our website has a very large no of pages. I am looking to create an XML Sitemap that contains only the most important pages (category pages etc). However, on crawling the website in a tool like Xenu (the others have a 500 page limit), I am unable to control which pages get added to the XML Sitemap, and which ones get excluded.

      Essentially, I only want pages that are upto 4 clicks away from my homepage to show up in the XML Sitemap.

      How should I create an XML sitemap, and at the same time control which pages of my site I add to it (category pages), and which ones I remove (product pages etc).

      Thanks in advance!

      Apurv

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

        I would recommend purchasing Screaming Frog.  You can crawl the site and sort the URLs by level.  Remove the URLs that are too deep from the crawl and export to XML sitemap.  Screaming Frog is definitely worth the price to unlock all of its features and have an unlimited crawl limit.

        http://www.screamingfrog.co.uk/seo-spider/

        AB_Newbie 1 Reply Last reply Reply Quote 1
        • Travis-W
          Travis-W last edited by

          If you have a list of all the URLs on your site, it is easy to create a sitemap using excel.  I have a template that I use and I can crank out a 50k URL sitemap in 5 minutes.

          AB_Newbie 1 Reply Last reply Reply Quote 1
          • AB_Newbie
            AB_Newbie @Travis-W last edited by

            Hi Travis

            That sounds like a smart way to go about this. Could you please guide me regarding how to add parameters like lastmod, priority, changefreq etc in the XML sitemap, using the URLs that I have in the Excel sheet.

            Thanks!

            Travis-W 1 Reply Last reply Reply Quote 0
            • AB_Newbie
              AB_Newbie @Schwaab last edited by

              Thanks Schwaab!

              1 Reply Last reply Reply Quote 0
              • Travis-W
                Travis-W @AB_Newbie last edited by

                Hey Intermediate,

                Here's my setup - image - http://screencast.com/t/qThC401hQVUp Be careful of the line breaks if you want your sitemap to be pretty (I'm not sure if it also works if everything is on a single line).

                Column A:

                Column B:
                URL

                Column 😄

                <lastmod>2013-08-27</lastmod>

                Column 😧
                <changefreq>always</changefreq>

                Column E:
                <priority>1</priority>

                Column F:
                =CONCATENATE(A2,B2,C2,D2,E2)

                You will need to add this as first 2 lines in your sitemap:

                and add to the end, but you should be good to go!
                I Hope that helps!

                AB_Newbie 1 Reply Last reply Reply Quote 1
                • AB_Newbie
                  AB_Newbie @Travis-W last edited by

                  Thanks a lot for sharing Travis. This is really helpful!

                  Appreciate your help here.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  • If I'm using a compressed sitemap (sitemap.xml.gz) that's the URL that gets submitted to webmaster tools, correct?
                    ThompsonPaul
                    ThompsonPaul
                    0
                    6
                    1.8k

                  • Desktop & Mobile XML Sitemap Submitted But Only Desktop Sitemap Indexed On Google Search Console
                    bridget.randolph
                    bridget.randolph
                    0
                    6
                    1.6k

                  • Absolute URL or Relative URL in my sitemap?
                    brianvest
                    brianvest
                    0
                    3
                    9.6k

                  • XML Sitemap and unwanted URL parameters
                    jfmonfette
                    jfmonfette
                    0
                    5
                    534

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

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

                  • Omitting URLs from XML Sitemap - Bad??
                    Cyrus-Shepard
                    Cyrus-Shepard
                    0
                    6
                    1.2k

                  • Google indexing less url's then containded in my sitemap.xml
                    Juist
                    Juist
                    0
                    7
                    3.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