Sitemap (XML sitemap)
Updated
Also known as: XML sitemap, Sitemap.xml, Sitemap index
An XML sitemap is a machine-readable file (usually /sitemap.xml) that tells search engines the list of all indexable URLs on a website — including the last-modified date and, optionally, images, videos and hreflang links. It does not replace natural crawling, but supplements it as a ”these URLs exist, please check back regularly” signal. It is essential for any serious SEO strategy, particularly on large sites, with new URLs or with frequent updates.
Sitemap content: what belongs in it and what does not
- Include — all indexable, canonical URLs returning status 200 OK.
- Exclude — noindex pages, redirected URLs (3xx), error pages (4xx/5xx), canonical sources (the variant that canonicalises to another URL), URLs blocked in robots.txt.
- Optional —
<lastmod>with a genuine last-modified date (Google uses it; with fake values the sitemap is devalued).<priority>and<changefreq>are ignored by Google.
Sitemap index for larger websites
A single sitemap may contain a maximum of 50,000 URLs or 50 MB. On larger sites a sitemap index is created — a parent file that points to several thematic sitemaps (for example /sitemap-products.xml, /sitemap-blog.xml, /sitemap-pages.xml). The advantage: better diagnostics in Search Console, because the indexing status is shown separately for each sitemap — errors can be narrowed down to particular content areas.
Submitting a sitemap correctly
Three steps: (1) reference the sitemap in robots.txt: Sitemap: https://example.de/sitemap.xml. (2) Submit it in Google Search Console and Bing Webmaster Tools — this gives direct feedback on processing errors. (3) Update the sitemap automatically whenever URLs are added or removed. CMS plugins (WordPress: Yoast, RankMath; Joomla: 4SEF; Shopify: built in) usually handle this. With a custom CMS, generate it programmatically rather than maintaining it statically.
Example from practice
Example: An e-commerce shop with 12,000 products had all URLs in a single sitemap that had not been updated for 6 months. GSC showed 4,300 pages as ”Discovered – currently not indexed”. After switching to a sitemap index with 4 partial sitemaps (products, categories, blog, static pages) and daily automatic generation with a genuine lastmod, the ”discovered but not crawled” share fell to 280 after 6 weeks, and new products were indexed on average 3 days later rather than 12.
Frequently asked questions
What is a sitemap.xml?
Does every website need a sitemap.xml?
Where do I submit the sitemap.xml?
robots.txt via the directive Sitemap: https://beispiel.de/sitemap.xml. With several sub-sitemaps, an index sitemap is used that points to all chunks.How many URLs may a sitemap.xml contain?
How often should the sitemap.xml be updated?
<lastmod> tag on each URL signals to search engines which pages should be re-checked. Inaccurate lastmod values are ignored by Google. Rankmio checks, via the GSC connection, whether the sitemap lastmod matches the actual content changes.Used in Rankmio for
Sitemap monitoring and gap analysis
Free SEO & GEO Check
SEO score, AI visibility and citability of your website in 30 seconds — no registration required.
Ready to optimize your website?
Register for free, get 10 credits and start right away.
Register now