Web design · Development · SEO
Sitemap
XML sitemaps explained: provide URLs to search engines
Editorially reviewed ·
Clear definition
An XML sitemap is a machine-readable file that provides search engines with important website URLs. It can include additional information such as the date of the last substantial modification. Sitemaps are particularly useful for large, new, weakly linked, or media-rich websites. They do not replace internal links or technical crawlability.
A sitemap should normally contain only canonical, indexable URLs returning a successful status code. noindex pages, redirects, error pages, and unwanted parameter URLs should be excluded. Inclusion does not guarantee indexing; it supports discovery and provides a weak canonical signal. lastmod should reflect genuine content changes.
Sitemap in practice
An XML sitemap lists preferred indexable URLs but cannot force crawling or indexing. It should contain only canonical, reachable pages and remain automatically synchronised with publishing status.
On-page work helps communicate a page’s content, purpose, and preferred URL. Individual fields or metrics should not be optimised in isolation. Titles, main content, internal links, indexing controls, and technical responses need to support the same message. Contradictions often originate in templates or automation and should be fixed systematically rather than page by page.
At a glance
Sitemap: relevance to SEO, paid search, and GEO
Modern search optimisation cannot be reduced to repetition scores or one metadata field. Clear topical coverage, aligned intent, traceable sources, and a good experience are more useful. Search-result and advertising data can reveal wording and information gaps. They should be treated as evidence, not as a reason to overload text with variations of the same phrase.
For search and answer systems, coverage of Sitemap should distinguish its definition, scope, and evaluation criteria. The editorial reference is “Sitemaps XML format” by Sitemaps.org, making central claims traceable for readers and machine-based systems.
Practical code example
Minimal XML sitemap
Each entry contains an absolute canonical URL. lastmod should only be included when the date is maintained reliably.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/de/glossar/</loc>
<lastmod>2026-08-20</lastmod>
</url>
<url>
<loc>https://example.com/de/glossar/seo/</loc>
<lastmod>2026-08-20</lastmod>
</url>
</urlset>
Sources and further reading
- Standard Sitemaps XML format Sitemaps.org · Checked