XML Sitemap
An XML sitemap is a machine-readable file that lists URLs a website wants search engines to know about.
It helps search engines discover new, updated, or otherwise important pages.
What It Contains
A sitemap typically contains absolute URLs representing pages intended for search.
It may also contain additional information such as when a page was last meaningfully modified.
Larger sites can use multiple sitemap files grouped through a sitemap index.
How It Works
Search engines can retrieve the sitemap directly or receive it through tools such as search-console platforms.
The URLs provide discovery signals.
A sitemap does not guarantee that every listed URL will be crawled, indexed, or shown in search results.
Why It Matters
Sitemaps create a clean inventory of the URLs a site considers important.
They are particularly useful for:
- New websites
- Large websites
- Sites with frequently changing content
- Pages that are not discovered quickly through links
- Diagnosing differences between intended and actual indexing
They can also make technical SEO problems easier to spot.
Common Problems
Common sitemap issues include:
- Listing redirected URLs
- Listing pages marked noindex
- Including duplicate or non-canonical URLs
- Including 404 pages
- Using outdated URLs after a migration
- Treating the sitemap as a replacement for internal links
- Updating modification dates when the page has not actually changed
How to Improve
Keep sitemaps limited to the canonical URLs you genuinely want search engines to consider for indexing.
Regenerate or update them when URLs change, and compare sitemap contents against actual crawl and indexing reports.