Technical SEO → XML Sitemaps
XML Sitemaps:
Tell Google Every Page That Should Rank.
An XML sitemap is a direct line of communication to Google. It tells Googlebot exactly which pages exist, when they were last updated, and which ones matter — accelerating discovery and indexing for every page on your site.
The Visual
What an XML Sitemap Communicates
Think of a sitemap as handing Google a complete, organized map of your site instead of making it find every page by following links. It doesn't guarantee indexing — Google still evaluates every page on its own merits — but it guarantees Google will check.
Your Site Structure → Sitemap
URL
The exact canonical address of every page you want indexed
Last Modified
When the page was last updated — helps Google prioritize recrawling
Priority
Relative importance (0.0–1.0) across your pages — a hint, not a guarantee
Checklist
- Sitemap submitted to Google Search Console
- Sitemap accessible at /sitemap.xml
- Only indexable URLs are included
- Noindex pages are excluded from sitemap
- Sitemap auto-updates when pages are added
- GSC shows no sitemap errors
- Indexed URL count close to submitted count
- Sitemap URL referenced in robots.txt
What Goes In
What to Include and Exclude from Your Sitemap
Including the wrong pages is just as harmful as excluding the right ones. A sitemap with noindex pages creates a contradiction Google notices — and a gap between submitted and indexed counts that flags a quality problem.
| Page Type | Include? | Reason |
|---|---|---|
| Homepage | ✓ Include | Core page — always include |
| Service pages | ✓ Include | Primary ranking targets |
| Location pages | ✓ Include | Local SEO targets |
| Blog posts | ✓ Include | Content that earns links and rankings |
| About / Contact pages | ✓ Include | Trust signals worth indexing |
| Thank-you pages | ✗ Exclude | No ranking value — noindex and exclude |
| Admin / login pages | ✗ Exclude | Should be noindexed anyway |
| Noindex pages | ✗ Exclude | Contradiction — never include noindex pages |
| Paginated / filtered URLs | ✗ Exclude | Duplicate content risk — exclude |
| UTM / parameter URLs | ✗ Exclude | Same content as canonical — exclude |
The Process
How To Generate and Submit Your Sitemap
Most modern CMS platforms and frameworks handle sitemap generation automatically. Submission takes under two minutes.
Generate Your Sitemap
WordPress: install Yoast SEO or Rank Math — both auto-generate at /sitemap.xml. Next.js: use the next-sitemap package. Shopify: generated automatically. For custom sites, XML-sitemaps.com can generate one from a crawl.
Verify It's Accessible
Visit yourdomain.com/sitemap.xml in a browser. It should display XML content listing your pages. If it returns a 404, your CMS isn't generating it correctly — check your plugin settings or next-sitemap configuration.
Submit to Google Search Console
In GSC, navigate to Indexing → Sitemaps. Enter your sitemap URL (usually /sitemap.xml or /sitemap_index.xml) and click Submit. GSC will process it and show you how many URLs were submitted vs. indexed.
Add Sitemap to robots.txt
Add a Sitemap: directive to your robots.txt file pointing to the full sitemap URL. This ensures any crawler that reads your robots.txt can find the sitemap without needing GSC submission.
Monitor in GSC
Return to the Sitemaps report in GSC periodically. A large gap between submitted and indexed URLs indicates pages Google is choosing not to index — usually due to thin content, duplicate signals, or noindex conflicts.
Make Sure Google Knows About Every Page That Should Rank
A free technical SEO audit checks your sitemap for errors, excluded pages, and indexation gaps — with a clear fix list.
Get My Free AuditFAQ
Common Questions About XML Sitemaps
Does sitemap.xml help SEO?
Yes — submitting an XML sitemap to Google Search Console accelerates the discovery and indexing of your pages, particularly for new sites that don't yet have many external links pointing to them. While a well-linked site will eventually be fully crawled without a sitemap, a sitemap guarantees Google knows about every URL you want indexed and ensures new or updated pages are processed faster. It also provides data in GSC: the sitemap report shows how many submitted URLs were indexed, which helps you spot indexation gaps quickly.
What is sitemap.xml in SEO?
A sitemap.xml is a machine-readable file that lists all the URLs on your website you want search engines to index. It follows the XML sitemap protocol and is submitted to Google Search Console to help Googlebot discover and prioritize your pages. Each URL entry can include optional metadata like the last modification date and relative priority. For most small business sites, a simple flat sitemap listing all service pages, location pages, and blog posts is sufficient.
Which sitemap format is best used for SEO?
XML is the standard and preferred format for SEO sitemaps. It's the format Google officially supports and expects when you submit a sitemap to Google Search Console. HTML sitemaps (a visible page listing your site's pages) are useful for users but not for search engine submission. For large sites with images or videos, specialized XML sitemap formats exist (image sitemap, video sitemap) that provide additional metadata to help Google index rich media content.
What is an XML sitemap example?
A basic XML sitemap starts with the XML declaration and sitemap schema namespace, then lists each URL in a <url> block containing a <loc> element with the full absolute URL. Optionally, each entry can include <lastmod> (the date the page was last updated in YYYY-MM-DD format), <changefreq> (a hint about how often the page changes), and <priority> (a relative importance value from 0.0 to 1.0). Most SEO tools and CMS plugins generate valid XML sitemaps automatically — for Next.js, the next-sitemap package handles this out of the box.
How to generate an XML sitemap?
For WordPress: install Yoast SEO or Rank Math — both generate and auto-update a sitemap at /sitemap.xml. For Next.js: install the next-sitemap package, configure it to include your routes and exclude noindex pages, and it generates the sitemap at build time. For other static site generators: most have built-in sitemap plugins. For custom-built sites without a generator, tools like XML-sitemaps.com can crawl your site and generate a sitemap file you download and upload to your server. After generating, submit the sitemap URL to Google Search Console under Sitemaps.
Are sitemaps still relevant?
Yes — XML sitemaps remain a recommended SEO best practice in 2025. Google has confirmed sitemaps are still used and processed. Their importance is proportional to site size and link structure: a small, well-linked site may not strictly need one, but it costs nothing to implement and provides measurable benefits for indexing speed and GSC visibility. For any site that regularly publishes new content, updates existing pages, or has a complex URL structure, sitemaps are a straightforward way to ensure Google's awareness stays current.
Do I need a sitemap for a small website?
Technically no — a small website with strong internal linking and a few external backlinks will likely get fully crawled without a sitemap. But practically, yes — it takes minutes to implement and provides clear advantages: faster indexing of new pages, a direct GSC signal if any pages aren't being indexed, and a built-in check that your URL structure is clean. For a 10-page service site, the sitemap itself is trivial. The bigger value is the GSC data it unlocks: seeing which pages are submitted vs. indexed reveals indexation gaps you'd otherwise miss.
Give Google a Complete Map of Your Site.
Griffin Mott Consulting sets up and validates XML sitemaps for small businesses in Kansas City. Start with a free audit.