Technical SEO
Build and Validate an XML Sitemap That Stays Useful
Choose the right URLs, test the published XML and catch common submission mistakes.
Prepare a list of preferred URLs
A sitemap should list the URLs you want search engines to consider. Use the preferred HTTPS host, include the complete address, and avoid expired, redirected or deliberately noindexed entries. For a small website, derive the list from published sections and verify it against the routes people can actually open.
A sitemap entry is a discovery signal, not a promise that a page will appear in Google. The URLs, internal links and canonical tags should point to the same versions. Use a lastmod value only if you can derive it from meaningful page changes consistently. Updating all timestamps every time you regenerate the file makes the date less informative.
Check the live response
For a new guide at /guides/check-title-tags/, confirm that exact URL opens without an extra redirect. If the same title is served at both a trailing-slash and no-slash URL, choose a preferred version and use it consistently. Test a few URLs per directory, and confirm the sitemap itself returns the actual XML rather than a generic homepage or hosting error page.
Validate XML syntax and escape characters in query strings if relevant. Submit the address of the published sitemap in Search Console. A successful submission shows the file could be processed. Open the Page indexing report if you are investigating whether a particular submitted page made it into the index.
Make the sitemap part of publishing
When a guide is added, update its hub link and sitemap entry in the same release. When a page is moved, remove the old URL from the sitemap and update internal links. If you know a page is intentionally excluded, write down the reason so it does not get added back by a later export.
Test discovery after a deployment
If the submitted sitemap fails, inspect the response from the exact URL copied into Search Console. An app's catch-all route can return a fully branded HTML page where XML is expected. An old redirect can lead to the wrong host. Look at the response body and the final URL together, then test one sitemap entry directly. Updating the XML source file is useful only once the server is delivering that file.
Frequently asked questions
Should I submit the sitemap after every new page?
Keep the sitemap current at the same URL. Resubmitting it after every small update is usually unnecessary.
Can I include pages that redirect?
List the preferred destination if it is indexable. Leave redirecting addresses out of a new sitemap.
Will submitting the sitemap fix “crawled, currently not indexed”?
Sitemaps help discovery. Investigate the related URL, content and indexability signals separately.