FREE SEO AUDIT · See exactly where your backlink profile stands in 48 hours

Get my audit →
Technical SEO

XML Sitemaps: What to Include and What to Leave Out

An XML sitemap is a list of the URLs on your site that you want search engines to find. It does not guarantee indexing or improve rankings directly, but it helps crawlers discover new and updated pages, especially on larger sites or sites with weak internal linking.

Infographic: XML Sitemaps: What to Include and What to Leave Out – List only pages you want indexed; Keep lastmod honest; Submit and monitor in Search Console
Key points from this guide

Most sitemap problems come from listing too much, not too little. Here is what belongs in it and what does not.

What to include

  • Pages that return a 200 status code.
  • Pages that are indexable, with no noindex tag.
  • The canonical version of each page.
  • Important content: services, products, blog posts, category pages.

Think of the sitemap as your list of pages you are proud of and want to appear in search.

What to leave out

Leave outWhy
Redirected URLsSearch engines should be sent to the final URL
Pages with noindexYou are sending mixed signals
Non-canonical duplicatesParameter and tracking variants waste crawl effort
Thank-you and admin pagesThey offer no value to searchers
Thin tag or archive pagesUnless they are genuinely useful landing pages
Diagram of the 6 main steps in this guide: What to include; What to leave out; Keep lastmod honest; Structure for growing sites; Image entries; Submit and monitor
The 6 parts of this guide at a glance

Keep lastmod honest

The lastmod field tells search engines when a page last changed meaningfully. Google has said it uses this value when it is consistently accurate. If you update every date every day, the signal becomes useless. Change lastmod only when the main content changes, not when a footer or sidebar updates.

Google ignores the priority and changefreq fields, so you can leave them out.

Structure for growing sites

A single sitemap can hold up to 50,000 URLs or 50MB uncompressed. Even below those limits, splitting sitemaps by type, such as pages, blog posts and products, makes it easier to see which section has indexing problems. A sitemap index file then lists the individual sitemaps. This site uses exactly that setup: one index pointing to a pages sitemap and a blog sitemap.

Image entries

If images matter for your traffic, you can add image entries to your sitemap so Google discovers them more easily. This is useful for original illustrations and product photos.

Submit and monitor

  1. Reference the sitemap in your robots.txt file with a Sitemap: line.
  2. Submit the sitemap index in Google Search Console under Sitemaps.
  3. Check the Pages report regularly to compare submitted pages with indexed pages.
  4. Investigate any large gap, often a sign of quality, duplication or crawl issues.

Our guide to getting new pages indexed faster covers what to do when submitted pages stay out of the index.

Fox tip: generate the sitemap automatically from your CMS or build process. Hand-edited sitemaps go stale quickly.

Common questions

Does a sitemap improve rankings?

Not directly. It helps discovery. Rankings still depend on content quality, relevance and links.

Should I have an HTML sitemap too?

An HTML sitemap helps visitors and adds internal links. It is optional but useful, especially on sites with many pages.

Want this done for your site?

Our team plans and builds links around the pages that matter to your revenue.

Talk to a strategist

Keep Reading