Customers & growth · SEO & search marketing

XML sitemap strategy

1STRUCTURE2PRIORITY3SUBMIT4MAINTAIN

Use it when

Your site is large, new, fast changing or heavy on images, video or news, and you need sitemaps that list the right URLs, stay current and show indexing by section.

Skip it when

  • Your site has about 500 pages or fewer, all linked internally, with few media or news pages. Your CMS default sitemap is enough.
  • Key pages are missing from Google and you do not know why. Use Crawlability & indexation framework first, which checks sitemaps among other causes.
  • You need to stop crawlers from fetching certain URLs. Use Robots.txt optimization, which this feeds.
  • You serve the same pages in several languages or countries and have not set the alternates. Use International SEO (hreflang) first.

What to apply first and what to use instead are listed below.

Inputs

  • Indexable URL inventory
    Every canonical URL that returns 200 and should appear in search, with its page type and the date of its last significant change, from the CMS database or a crawl, as of today.
  • Page types
    The main sections or templates, such as products, categories, articles and videos, with the URL count for each, from the CMS.
  • Current sitemaps and robots.txt
    Every live sitemap file with its status and discovered URL count from the Search Console Sitemaps report, and the Sitemap lines in robots.txt.
  • Verified properties
    Search Console and Bing Webmaster Tools access for every host the sitemaps cover.
  • Media inventoryOptional
    Images loaded by JavaScript and pages with video, from the CMS or a rendered crawl.

Steps

  1. Build the list from the indexable inventory only, using absolute URLs on the same protocol and host as the sitemap, and drop redirected, noindex and non-canonical URLs.
  2. Split the list into one sitemap per page type, each under 50,000 URLs and 50 MB uncompressed, and list them all in one sitemap index at the site root.
  3. Set each lastmod to the date and time of the page's last significant change to main content, structured data or links, and leave priority and changefreq out.
  4. Add image or video entries for media Google may not otherwise find, either inside the page sitemaps or in separate media sitemaps.
  5. Generate the files from the CMS or a build job so pages are added, removed and re-dated when they are published or changed, and send each change to Bing through IndexNow.
  6. Submit the index in Search Console and Bing Webmaster Tools, add a Sitemap line to robots.txt, then filter the page indexing report by each sitemap and record submitted and indexed counts.

Output

A live sitemap set under one index file, with a table that shows how each sitemap is built and how much of it is indexed.

  • Sitemap file and page type
  • URL count and uncompressed size
  • Lastmod source field
  • Media entries used
  • Generation trigger
  • Where submitted (Search Console, Bing, robots.txt)
  • Submitted and indexed URLs, with date
  • Owner

Done when

  • Every listed URL returns 200, is indexable and is its own canonical.
  • No file exceeds 50,000 URLs or 50 MB uncompressed, and every file appears in the index.
  • Lastmod matches the page's last significant change on a sample of URLs checked from each sitemap.
  • The index shows Success in Search Console, is read without errors in Bing Webmaster Tools and is named in robots.txt.
  • Each sitemap has its submitted and indexed counts recorded with the date.

Measure

Track the indexed share of each sitemap in the page indexing report weekly for eight weeks, and the days from publishing to indexing for new pages. Check the Sitemaps report status after every release. Compare with the counts recorded on submission day. It worked when the indexed share of your key page types rises and new pages are indexed sooner than your own baseline.

Hypothetical example

Fernwood Recipes serves one sitemap of 70,000 URLs, including 9,000 noindex tag pages, with every lastmod set to the hour the file was built. The team rebuilds it from the indexable inventory into four sitemaps under one index. Recipes hold 38,000 URLs and articles 6,000. Categories hold 900 and video pages 1,200, and the tag pages are dropped. Lastmod now comes from each recipe's last edit date, and the CMS regenerates the files on publish and pings IndexNow. After four weeks the page indexing report, filtered by sitemap, shows recipes at 71 percent indexed and video pages at 40 percent. The team sends the video pages to Crawlability & indexation framework to find what holds them back.

Common mistakes

  • Setting every lastmod to the time the file was generated. Use the real date of the last significant change, or search engines stop trusting it.
  • Listing redirected, noindex or non-canonical URLs. Generate the sitemap from the indexable inventory only.
  • Putting the whole site in one sitemap. Split it by page type so the indexing report shows which section lags.
  • Treating submission as a promise of indexing. A sitemap is a hint, so diagnose pages that stay out with Crawlability & indexation framework.
  • Building the file by hand once. Generate it on publish so it never goes stale.

Sources

Show all 7 sources

By company stage

  1. Pre-IdeaNot applicableThere is no website to index yet.
  2. IdeaUsefulA basic sitemap helps a new site get crawled, though it is minor.
  3. Early StartupUsefulA clean sitemap supports an SEO channel test as content grows.
  4. StartupUsefulAs content scales, structure and submission help crawling of key pages.
  5. GrowthUsefulLarge sites across regions benefit from segmented sitemaps and regular maintenance.
  6. ScaleUsefulBig sites with many products need careful sitemap upkeep for crawl efficiency.
  7. EnterpriseUsefulVery large sites need sitemap structure and maintenance for crawl efficiency, handled routinely by technical SEO specialists.

Apply first

Use instead

  • Crawlability & indexation framework

    Key pages are missing from Google and you do not know why. Use Crawlability & indexation framework first, which checks sitemaps among other causes.

  • Robots.txt optimization

    You need to stop crawlers from fetching certain URLs. Use Robots.txt optimization, which this feeds.

  • International SEO (hreflang)

    You serve the same pages in several languages or countries and have not set the alternates. Use International SEO (hreflang) first.

Recommended resources

No sponsored resources on this framework yet. Sponsored listings would be labelled here, never in search.

Progress is not saved until you have an account. Create a free account