Resources · 108

Sitemaps: verify URLs, shards and lastmod dates

Check the file offered to crawlers beyond simple XML syntax validity.

· 2 min

Laptop displaying code on a desk Illustration · fictional scene

What this guide helps achieve

  • Define expected URLs
  • Check contents and responses
  • Prepare partitioning
  • Make lastmod meaningful
  • Track discrepancies

Quick check

  • Does a sitemap guarantee indexing?
  • Should lastmod change on every generation?

Step-by-step method

  1. 01

    Define expected URLs

    Start from published pages and canonical destinations. Exclude search filters, errors and redirects from the expected set; compare languages and families separately.

    Deliverable: eligible URL set.

  2. 02

    Check contents and responses

    Check absolute addresses, encoding, escaped characters and final responses. Separate XML validity, HTTP availability and editorial relevance; each needs a check.

    Deliverable: structure and response checks.

  3. 03

    Prepare partitioning

    Measure URL count and uncompressed size. The protocol defines file limits; establish stable partitioning and an index before excessive generation becomes unusable.

    Deliverable: tracked limits and shards.

  4. 04

    Make lastmod meaningful

    Link dates to significant content changes, not each request. Check dependencies across translations, articles and data; invalidate a cache when its source changes.

    Deliverable: date provenance.

  5. 05

    Track discrepancies

    Compare expected and emitted URLs, duplicates and inaccessible shards. Search reports describe discovery and processing; submission does not guarantee indexing.

    Deliverable: discrepancy report and owner.

Decide what enters the sitemap

Check the observed state before choosing next steps.

  1. Eligible published page

    Emit its final URL and justified change date.

  2. Filter, error or redirect

    Exclude it from the landing-page set.

  3. Oversized shard

    Partition and check files and their index.

Reusable worksheet

Complete with your authorised observations. These fields are a working template, not observed results.

FieldInformation to record
URLCanonical, language and published state
ShardUncompressed bytes and count
DateChange source and check

Worked example

Illustrative situation

Illustrative case: a sitemap includes every article but misses a new translated-guide family. Its XML remains valid.

Decision and expected evidence

Compare the expected set by family and language; fix generation dependencies and then inspect served files.

Distinguish the mechanisms

MechanismPurposeCheck or limitation
Valid XMLInterpretable documentCan contain inappropriate URLs
Sitemap indexReference multiple filesCheck every shard
lastmodSignificant change dateAvoid artificially renewed dates

Management indicators

IndicatorWhat it measuresFirst action
CoverageEligible pages actually emittedAddress omissions
QualityDuplicates and non-final destinationsCorrect generation

Common pitfalls

  • Renew all dates without content changes
  • Include redirects as primary destinations
  • Check only compressed size

Frequently asked questions

Does a sitemap guarantee indexing?

No. It helps discovery. Availability, directives and content quality remain separate.

Should lastmod change on every generation?

Keep a date tied to the affected content. Technical regeneration without editorial change is insufficient.

Official references

References consulted: . The method and worksheet propose checks to adapt to your context; they do not constitute certification.