How to audit sitemap and canonical mismatches
ApexAI Workspace ยท
Direct answer
Join the sitemap to a crawl export and compare each listed URL with its final HTTP status and declared canonical. Prioritize URLs you want indexed that redirect or declare a different URL.
Method
Choose the preferred URL
Confirm which version serves the intended content. Compare status, canonical, and internal links before changing the sitemap.
Verify the fix
Fetch the preferred page and its alternatives. Confirm the preferred URL is listed and the alternate behavior matches your decision.
Related walkthrough: Compare two crawl snapshots for regressions
Worked example
A sitemap lists /shirts-old, but it redirects to /shirts. Replace the old sitemap entry with the destination after confirming the destination returns 200 and declares itself.
Frequently asked question
Can I keep both URLs in the sitemap?
List the preferred version of equivalent content. Keep separate entries when the pages serve distinct content and each is intended for indexing.
Official reference: Google documentation