What belongs in an XML sitemap?
List preferred canonical URLs that are accessible and intended for indexing. A sitemap is a discovery signal, not an indexing guarantee. A valid page does not automatically have to appear in a sitemap, especially when ordinary internal links already make it easy to find.
Why sitemap consistency matters
A sitemap that points to unavailable, redirected or noindex URLs gives crawlers conflicting directions and makes maintenance harder. A missing important indexable page may indicate an incomplete publishing workflow, but the absence alone does not establish a search problem.
What SEOTera checks and cannot prove
Page Audit checks the observed sitemap response, whether the audited URL appears in the checked portion, and robots.txt sitemap declarations and host relationships. Site Audit compares its observed indexable pages and sitemap entries, flagging errors, redirects, noindex targets and absent observed pages. Neither audit necessarily sees every sitemap or all site URLs.
Read each finding separately
A sitemap URL error means an entry returned an error. A redirect entry points through another URL; replace it with the intended final address. A noindex entry conflicts with an indexing intent; decide whether to remove noindex or omit the URL. An indexable page absent from the observed sitemap deserves review, not automatic inclusion.
Check robots.txt and host scope
Open robots.txt and inspect each Sitemap declaration. Use a reachable absolute sitemap URL and confirm the declared host and your sitemap policy are intentional. Cross-host declarations may need explicit ownership or configuration; a host warning is a prompt to investigate, not proof that search engines ignore the file.
Inspect the XML manually
Fetch the sitemap and sitemap indexes in a browser or XML viewer. Check response status, XML structure and a sample of loc URLs. Follow those URLs to the final response and inspect noindex and canonical signals. Compare a missing page with the actual sitemap set before changing it.
1. Decide which URLs should be listed
Exclude intentionally private, noindex or obsolete pages. For each missing observed page, confirm that it is the preferred canonical URL and that inclusion serves your discovery plan. Avoid adding every crawlable parameter or alternate URL indiscriminately.
2. Update the generator and declarations
Repair the route or XML generator rather than hand-editing a generated file that will be overwritten. Replace redirecting and error URLs, reconcile noindex decisions, regenerate sitemap indexes, and update robots.txt declarations when their locations changed.
3. Fetch and re-audit
Request the published XML again, check representative loc responses, and rerun Site Audit. Compare the new findings with crawl coverage. Search Console can help confirm Google's processing, but neither a clean audit nor sitemap submission guarantees indexing.
Wrong and corrected entry
When /old-guide redirects to /new-guide and the latter is the preferred indexable page, publish the final URL in the sitemap. Keep the XML escaped and regenerate it from the same source of truth as your routes.
<loc>https://example.com/old-guide</loc> → <loc>https://example.com/new-guide</loc>Related SEOTera checks
These checks cover signals within this topic. An observation or warning needs context; it does not always mean a change is required.
- Sitemap status
sitemap-status - Audited URL in sitemap
sitemap-target - Sitemap link in robots.txt
robots-sitemap - Robots.txt sitemap host
robots-sitemap-host
Sources and further reading
Related guides
Check your sitemap and observed page signals
Site Audit compares sitemap entries with pages found during its crawl and reports errors, redirects and noindex targets.