Get Maintouch
Turn search and AI visibility work into a repeatable growth system.
If your fresh content sits ignored for weeks after publishing, your sitemap setup is usually where the problem lives. A sitemap hands crawlers a direct list of your URLs instead of making them find pages by following links, and your <lastmod> tag tells them which ones changed recently, so they spend their budget on pages that matter. Let's get into how it works and what a clean one actually looks like.
TLDR:
- A sitemap is an XML file that hands Googlebot a direct list of your URLs instead of relying on link-following alone
- 45% of XML sitemaps contain errors like broken or non-canonical URLs, actively wasting crawl budget on pages Google ignores (Screaming Frog, 2024)
- Only include canonical, indexable URLs returning 200 status codes; redirect and noindex pages don't belong in your sitemap
- Your sitemap's
<lastmod>tag signals freshness to crawlers, and research suggests pages updated recently are cited by AI engines far more often - Maintouch crawls your site on every publish, flags sitemap errors like 404s and redirect chains, and pushes fixes directly to your CMS
What a Sitemap Is
A sitemap is a file that lists your pages so search engines know what exists and where to find it. Think of it as a table of contents where the audience is Googlebot, not a human reader.
It's machine-readable XML. It tells crawlers which URLs matter and when they were last updated. Without one, search engines still find pages by following links. A sitemap is active: you're handing Googlebot a list and saying, these exist, go get them.
Worth clearing up one thing: "sitemap" sometimes refers to an HTML navigation page for visitors. That's a different animal entirely. When SEOs say sitemap, they mean the XML version at /sitemap.xml.
There are also image sitemaps, video sitemaps, news sitemaps, and sitemap index files. Each solves a narrower problem, and I'll break those down in the next section.
How Sitemaps Work: Crawling and Indexing
Search engines follow a three-step sequence: crawl, index, rank. A page that never gets crawled never gets indexed, and a page that never gets indexed can't rank for anything. Sitemaps sit at the front of that chain.
Googlebot finds URLs three ways: following internal links, following external backlinks, and reading your sitemap. The first two are passive. Your sitemap is the active option. That distinction matters most for new content that hasn't earned links yet, and for pages buried four or five clicks deep that Googlebot may never reach through navigation alone.
According to Rank Tracker's 2025 data, nearly 60% of pages ranking in the top 10 Google results are at least three years old. That's where <lastmod> earns its keep. It signals which pages changed recently and gives Googlebot a reason to re-crawl instead of treating your content as more of the same.
None of this is a guarantee. A sitemap is a suggestion, not a command. Without one, you're relying entirely on link structure to get found. That's slower and less reliable, especially for newly published content.
Types of Sitemaps Explained
| Type | Audience | Purpose |
|---|---|---|
| XML sitemap | Search engine crawlers | Lists URLs with metadata like <lastmod> and <priority> so crawlers can find and re-crawl pages efficiently |
| HTML sitemap | Human visitors | A navigational page linking to key sections of your site, useful for UX but not a ranking factor |
| Image sitemap | Search engine crawlers | Surfaces image URLs that crawlers might miss, especially if images load via JavaScript |
| Video sitemap | Search engine crawlers | Provides video metadata (title, description, thumbnail, duration) so videos can appear in Google Video results |
| Sitemap index file | Search engine crawlers | A wrapper file that points to multiple XML sitemaps when a single file would exceed the 50,000-URL limit |
XML is what actually matters for SEO. Image and video sitemaps help when media loads dynamically or via JavaScript and isn't surfacing in search results. For large sites, a sitemap index file references multiple child sitemaps when any single file would exceed 50,000 URLs or 50MB.
What to Include (and Exclude) in Your Sitemap
Simple rule: every URL in your sitemap should be canonical, indexable, and returning a 200 status code. If a page doesn't meet all three, it doesn't belong.
Include:
- Live pages you want ranked, each with a self-referencing canonical tag
- URLs returning 200 status codes
Exclude:
- Redirect URLs (301s, 302s)
- Error pages (404s, 410s)
- Pages with a
noindextag - Duplicate URLs with query parameters or session IDs
- Non-canonical versions of a page
45% of XML sitemaps contain errors like broken URLs, blocked URLs, or non-canonical entries, according to Screaming Frog's 2024 data. Nearly half of all sitemaps are actively confusing crawlers instead of helping them.
A bloated sitemap wastes crawl budget on pages Google will ignore anyway. Keeping it clean matters as much as having one at all.
When a Website Needs a Sitemap
Small sites with solid internal linking and fewer than a few hundred pages don't need a sitemap. Crawlers can find everything through navigation alone.
Sitemaps become worth the effort when:
- Your site has thousands of pages or grows through programmatic content.
- You're on a new domain with few external backlinks pointing to you.
- Your site relies on JavaScript execution (single-page applications, for example).
- You publish rich media that crawlers can't parse from HTML.
- You push content frequently and need Googlebot to notice quickly.
SE Ranking's 2025 data puts 15% of websites as missing an XML sitemap entirely. A lot of those are exactly the sites that need one most: new domains, JS-heavy builds, programmatic content at scale.
Five-page site with clean navigation? Skip it. SaaS blog publishing weekly or a directory with thousands of listings? You need one.
How to Create and Submit Your Sitemap
Most CMS platforms generate a sitemap automatically. Yoast and Rank Math on WordPress both build and update the XML file every time you publish. Webflow does it natively. If you're on a headless CMS or custom stack, Screaming Frog or XML-Sitemaps.com can crawl your site and produce the file, or you can write one by hand if the site is small enough.
Place the file at your site root so it's accessible at /sitemap.xml, then add a reference in your robots.txt:
Sitemap: https://yourdomain.com/sitemap.xml
Then submit through Google Search Console. Choose Sitemaps in the left nav, paste your URL, and hit submit. Search Console reports back on processing status, indexed URLs, and any errors. That feedback loop is worth the two minutes it takes.
If your site exceeds 50,000 URLs or 50MB per file, split into multiple sitemaps and reference them from a sitemap index file, per Google's sitemap documentation. The index is just an XML file that points to your child sitemaps, and no individual file can break either limit.
Sitemaps and Crawl Budget
Crawl budget is how many pages Googlebot will crawl on your site in a given timeframe. Your sitemap directly influences how much Google wants your content, which shapes how that budget gets spent.
When your sitemap includes redirect chains, 404s, or non-canonical URLs, Googlebot wastes requests on pages it'll discard, and those wasted requests come at the cost of pages you actually want indexed. For a 50-page site, this barely registers. For sites with 10,000+ frequently updated pages, it's a real constraint.
A clean sitemap pointing only to canonical, indexable, 200-status URLs is one of the simplest ways to direct that limited budget toward content that matters. If you're using programmatic SEO to publish pages at scale, this is the difference between new content getting crawled in days versus weeks.
Sitemaps and AI Search
AI chatbots run a web search before generating answers. ChatGPT, Perplexity, and Gemini all pull from indexed web pages during retrieval, then assemble responses from passages that best match the query. A page that isn't indexed can't enter that retrieval set.
Sitemaps don't directly cause a page to appear in an AI-generated answer. But they keep your pages crawlable and indexed, which is the prerequisite for any AI engine to consider citing you.
Freshness matters here too. Research suggests that recently updated content gets cited far more often than stale pages. Your <lastmod> tag signals that recency to crawlers, and influences whether AI retrieval systems treat your content as current.
The chain is short: sitemap keeps pages crawled → crawling keeps pages indexed → indexing keeps pages eligible for AI citation. Break any link and you're out of the running before content quality even enters the picture.
How Maintouch Handles Sitemap Health Automatically
Maintouch crawls your site on every publish, checking against both the sitemap and a full recursive crawl to catch anything that's fallen out of sync. If a URL is returning a 404, stuck in a redirect chain, or missing from the sitemap entirely, the system flags it and pushes the fix directly to your CMS. No ticket filed, no developer queue.
That CMS connection is what makes the loop work. Maintouch integrates with WordPress, Webflow, Sanity, HubSpot, Contentful, Storyblok, Strapi, Payload, Ghost, and Framer. Fixes ship the moment they're detected across every supported stack.
Schema markup runs on the same cycle. When content changes outpace structured data updates, you get schema drift, and AI engines stop trusting the page. Maintouch monitors for those mismatches and regenerates schema automatically via CMS webhook on every publish, so no one has to manually touch JSON-LD.
Crawl, detect, fix, verify. If you want to see what that looks like on your site, shoot me a message at [email protected] and I'll walk you through it.
Final Thoughts on What a Sitemap Does for Your Site
The bar here isn't high. A sitemap that lists only canonical, indexable, 200-status URLs and gets submitted to Search Console is doing its job. The sites that struggle are usually the ones with bloated or broken sitemaps, not the ones without one at all. Get the file clean, keep it current, and let the crawlers do their work.
FAQ
What should I include versus exclude in an XML sitemap?
Only include URLs that are canonical, indexable, and returning a 200 status code. Exclude redirect URLs (301s and 302s), error pages (404s and 410s), pages with a noindex tag, and duplicate URLs with query parameters. Nearly half of all XML sitemaps contain errors like broken or non-canonical URLs, according to Screaming Frog's 2024 data.
How do I get newly published programmatic pages indexed by Google quickly?
Submit your sitemap through Google Search Console, use the <lastmod> tag to signal freshness on updated URLs, and add a Sitemap: reference in your robots.txt file. For large programmatic builds, keep your sitemap clean by excluding any non-canonical or redirect URLs so Googlebot spends crawl budget on pages that actually matter. At scale, a bloated or error-filled sitemap is the primary reason new content sits unindexed for weeks instead of days.
What is crawl budget and how does it affect indexing when a site publishes a lot of pages at once?
When your sitemap includes redirect chains, 404s, or non-canonical URLs, Googlebot wastes requests on pages it'll discard, leaving newly published pages uncrawled. Large programmatic builds with 10,000+ pages can see indexing delays stretch to weeks without a clean sitemap, while smaller deployments crawl within days.
Sitemap submitted in Google Search Console vs. just referencing it in robots.txt: do I need both?
Do both. The robots.txt reference tells any crawler where your sitemap lives without requiring them to check Search Console first. Submitting through Google Search Console adds a feedback loop: Google reports back on processing status, crawled URLs, and any errors, which lets you catch problems like blocked URLs or non-canonical entries before they compound. The robots.txt reference is passive coverage; Search Console submission is active verification.
Does having a sitemap help my content get cited in AI search results like ChatGPT or Perplexity?
A sitemap doesn't directly trigger an AI citation, but it keeps your pages crawled and indexed, which is the prerequisite for any AI engine to consider citing you. ChatGPT, Perplexity, and Gemini pull from indexed web pages during retrieval: if Googlebot hasn't crawled a page, those systems can't find it either. The <lastmod> tag also signals freshness, which matters because content updated in the last 90 days gets cited far more often than stale pages.
How often should I update my sitemap?
Your sitemap should update every time you publish or make a substantial change to a page. Most CMS platforms handle this automatically, since Yoast on WordPress and Webflow's native sitemap both regenerate on publish. If yours doesn't, set a recurring audit at least monthly to catch stale <lastmod> dates, broken URLs, or newly created pages that didn't get added. Stale <lastmod> timestamps are one of the quieter reasons Googlebot deprioritizes a re-crawl.
What's the difference between a sitemap and robots.txt?
A sitemap tells crawlers which URLs exist and should be crawled. robots.txt tells crawlers which URLs they're allowed to access. They're complementary, not interchangeable. Your robots.txt file should reference your sitemap's location, but a URL you've blocked in robots.txt has no business being in your sitemap. Contradicting yourself across the two files is a fast way to confuse Googlebot and waste crawl budget.
Can a bad sitemap actually hurt my SEO?
Yes. Including redirect URLs, 404 pages, or non-canonical duplicates actively misdirects Googlebot and burns crawl budget on pages it'll discard. Nearly half of all XML sitemaps contain these kinds of errors, according to Screaming Frog's 2024 data. A bloated or broken sitemap is worse than a smaller, accurate one. Keep it clean: canonical URLs, 200 status codes, indexable pages only.
Does sitemap priority actually influence how Google crawls my pages?
Google has said publicly that it largely ignores the <priority> tag in XML sitemaps. It treats the tag as a hint, not an instruction, and has historically found it unreliable because most sites set every page to priority 1.0. Don't spend time tuning priority values. Focus on <lastmod> accuracy instead, because that's the field Googlebot actually uses to decide whether a re-crawl is worth the request.
How do I know if my sitemap has errors?
Google Search Console is the fastest first pass. Go to Sitemaps in the left nav, submit your sitemap URL if you haven't already, and check the coverage report for blocked URLs, 404s, and non-indexed entries. Screaming Frog can crawl your sitemap directly and flag redirect chains, duplicate canonicals, and status code issues in one pass. If you're on a CMS that pushes fixes automatically, those errors should surface and resolve without you having to hunt them down.
Do image and video sitemaps help with Google image and video search?
They do, particularly for media that loads dynamically or embeds in ways standard crawlers can't parse from HTML alone. If your images or videos aren't surfacing in Google image or video results and you know the content is high quality, a dedicated media sitemap is usually the fix. For standard static images in plain HTML, Googlebot can typically find them without a separate sitemap. The dedicated file matters most for JavaScript-loaded or lazily loaded media.
Turn search into your best growth channel.
Maintouch tracks your visibility across AI and Google, creates and refreshes content, and gets your brand mentioned on the sites that shape discovery.
Book a demo