SEO

Sitemap (XML sitemap)

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

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?
A sitemap.xml is an XML file in the root of a website that lists all indexable URLs — with optional metadata such as the last-modified date and change frequency. Search engines use it as a discovery aid, particularly for large sites or newly indexed pages without internal backlinks.
Does every website need a sitemap.xml?
Small, well-linked sites under 100 pages can manage without one — Google finds the URLs via internal links. It becomes worthwhile from around 100 URLs, for news sites, with a complex site structure, or when fresh content should be indexed quickly.
Where do I submit the sitemap.xml?
In two places: (1) in Google Search Console under ”Sitemaps” by entering the URL, (2) in 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?
A maximum of 50,000 URLs or 50 MB uncompressed. Larger sites split this across several sitemaps and use a sitemap index file. A separate limit applies to news sitemaps: 1,000 URLs, and only articles less than 48 hours old.
How often should the sitemap.xml be updated?
Automatically with every content update. The <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

Go to the feature →

Last updated: 2026-06-17  ·  Browse all glossary entries

Free SEO & GEO Check

SEO score, AI visibility and citability of your website in 30 seconds — no registration required.

Check for free now

Ready to optimize your website?

Register for free, get 10 credits and start right away.

Register now