What Is an XML Sitemap? Complete Guide
An XML sitemap is a machine-readable file listing the URLs you want search engines to discover. It supplements crawling; it never overrides page-level signals like noindex or canonicals.
Explain It Like I'm 5
An XML sitemap is your website's mailing list for Google: every page you want visited, written in Google's native language. Google does not have to guess or wander - you hand it the guest list directly.
Understanding XML Sitemaps
An XML sitemap lists URLs with optional metadata: lastmod, changefreq, and priority. Of these, Google has said only lastmod is used, and only if it is accurate, for crawl prioritization. The sitemap is a discovery aid: it helps Google find URLs, especially new or isolated ones, but confers no ranking advantage by itself.
The operative relationships are in Search Console. Sitemap submission surfaces indexing statistics: discovered but not crawled, crawled but not indexed, and indexed. These states diagnose the gap between what you listed and what Google accepted, revealing quality, duplication, or crawl-budget issues.
Sitemaps do not override page signals. A URL marked noindex in the sitemap stays out of the index; a canonical pointing elsewhere redirects credit. Listing junk URLs does not force indexing, it wastes crawl budget and dilutes sitemap quality signals.
Best practice is a clean, accurate sitemap: only indexable canonical URLs, honest lastmod dates, split sitemaps by type (posts, pages, media) for large sites, and referenced from robots.txt for non-Google engines.
Types of XML Sitemap
URL Sitemap
The standard form listing page URLs with lastmod.
Example: <urlset> with 500 post URLs each carrying accurate lastmod dates.
Sitemap Index
A sitemap of sitemaps for large sites.
Example: sitemap-index.xml pointing at posts-sitemap.xml, pages-sitemap.xml, media-sitemap.xml.
Why XML Sitemaps Matter
Sitemaps compress discovery time for new and deep pages and give you the indexing report card that drives crawl diagnosis. Clean sitemaps are a quality signal in themselves.
Best Practices
List Only Canonical Indexable URLs
Exclude noindex pages, redirects, canonicalized duplicates, and parameters. Sitemap cleanliness is a quality signal.
Set Honest lastmod Dates
Google uses lastmod for crawl prioritization when accurate. Fake freshness gets ignored, then distrusted.
Segment Large Sites Into Multiple Sitemaps
Posts, pages, categories, and media in separate files make statistics legible and problems localizable.
Watch Discovered-vs-Indexed Ratios
Large gaps between listed and indexed URLs indicate quality, duplication, or authority problems worth fixing before adding content.
Common Mistakes
Including noindex or redirected URLs
Fix: Mixed signals waste crawl budget and confuse reporting. The sitemap should mirror what should be indexed.
Publishing lastmod dates that always say today
Fix: Google learns to distrust inflated freshness. Honest dates keep the signal alive.
Treating sitemap submission as an indexing guarantee
Fix: Listing is discovery, not acceptance. Indexed status depends on quality, duplication, and authority judgments.
How WPLink Keeps Sitemaps Effective
WPLink links orphaned and deep pages into the site structure, addressing the isolation problem sitemaps alone cannot fix: discovered URLs become contextually connected ones.
Frequently Asked Questions
Related Articles
Ready to optimize your internal links?
Get started with WPLink today and see the difference.
Download WPLink