Technical SEO

Keep XML sitemaps limited to canonical, useful URLs

Generate sitemaps from the same source of truth as routing and include only canonical URLs that should be discoverable. A sitemap is a discovery hint, not an indexation guarantee. Including redirects, noindex pages, parameter duplicates or low-value URLs weakens its usefulness. Search features and crawler behavior change; validate current official guidance and avoid creating pages whose only distinction is a keyword or location substitution.

Search discovery and canonical intent

A sitemap is a discovery hint, not an indexation guarantee. Including redirects, noindex pages, parameter duplicates or low-value URLs weakens its usefulness.

  • Define one canonical URL for each distinct user need
  • Keep technical signals consistent across HTML and sitemap
  • Verify outcomes in Search Console and raw responses

Implementation approach

Use absolute canonical URLs, stable XML escaping and a consistent route inventory; exclude noncanonical and blocked routes and set lastmod only when a meaningful modification date is available.

  • Confirm the responsible owner
  • Apply the change to a representative case
  • Document decisions and exceptions

Practical example

A build creates one sitemap entry for a canonical resource route and excludes its query tracking variants and a legacy URL that redirects elsewhere.

  • Reproduce the starting situation
  • Apply the described approach
  • Check the user-facing result

Verification and follow-up

Parse the built sitemap, compare its unique URL set with intended canonical routes and check representative response codes and metadata.

  • Test expected and failure cases
  • Compare with the recorded baseline
  • Agree the next review date and owner

Questions to keep in view

When should a team use this technical seo guide?

Generate sitemaps from the same source of truth as routing and include only canonical URLs that should be discoverable.

What should be checked before rollout?

Parse the built sitemap, compare its unique URL set with intended canonical routes and check representative response codes and metadata.