SEO Recommended
List every public page in a sitemap
Publish an XML sitemap, a list of your pages for search engines. List only canonical public URLs that answer 200, each with an honest last-changed date.
How to do it
Build the sitemap from the same page list as the site. Use full canonical URLs only, with no redirects and no noindex pages. Take lastmod from each page's change date. Leave out changefreq and priority, because Google ignores them.
Example
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<lastmod>2026-03-02</lastmod>
</url>
<url>
<loc>https://example.com/pricing</loc>
<lastmod>2026-02-14</lastmod>
</url>
</urlset>
How to check
A test fetches every <loc>, and each answers 200 without a redirect.
For agents: if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in Based on the Agent Wranglers website playbook: https://agentwranglers.se/playbook/website/seo/xml-sitemaps.