Skip to content
AuditMeAuditMe

What Is an XML Sitemap?

Last updated: August 31, 2026

An XML sitemap is a file that lists all important pages on a website, helping search engines discover and crawl content more efficiently. It is placed at the root of the site (e.g., https://example.com/sitemap.xml) and referenced in robots.txt. A sitemap can include metadata like last modification date, change frequency, and page priority.

Why It Matters

An XML sitemap ensures search engines discover all your important pages, especially those that might not be reachable through internal links alone (orphan pages). It also provides crawl hints — when pages were last updated and how often they change. For large sites, sitemaps are essential for efficient crawl budget utilization.

How AuditMe Detects It

AuditMe checks: (1) presence of XML sitemap at /sitemap.xml, (2) validity of XML structure, (3) whether all important pages are included, (4) last modification dates are reasonable (not all set to the same date), (5) sitemap is referenced in robots.txt, (6) no excessive page counts (>50,000 without splitting), and (7) proper encoding (UTF-8).

Example

Correct
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.com/</loc>
    <lastmod>2026-08-31</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>
</urlset>
Incorrect
<?xml version="1.0" encoding="UTF-8"?>
<urlset>
  <url>
    <loc>/</loc>
    <!-- Missing: absolute URL, xmlns, lastmod -->
  </url>
</urlset>

Common Mistakes

  • Missing sitemap entirely — crawlers must rely on link discovery only
  • Sitemap not referenced in robots.txt — crawlers may not find it
  • Including non-200 URLs (404s, redirects) in the sitemap
  • All lastmod dates set to the same date — no useful crawl signal
  • Sitemap exceeds 50,000 URLs without splitting into multiple files
  • Missing xmlns declaration — invalid XML structure
Related AuditMe Check
XML Sitemap Validation
Try it