Guides · Search visibility

XML sitemap

One of the checks in every audibot report. This page says exactly what audibot reads, what passes, and how to fix it.

What audibot checks

The sitemap named by the first Sitemap: line in robots.txt, or /sitemap.xml if there is none. It must answer 2xx and contain <urlset> or <sitemapindex>.

Why it matters

A sitemap lists the pages you want indexed, so search engines find pages that few links point to and notice changes sooner.

How do I create an XML sitemap and tell search engines about it?

Generate the sitemap from the site's own list of pages — most frameworks and CMSs have a plugin — and reference it from robots.txt.

/sitemap.xml

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url><loc>https://example.com/</loc></url>
  <url><loc>https://example.com/pricing</loc></url>
</urlset>

robots.txt

Sitemap: https://example.com/sitemap.xml

Astro

npx astro add sitemap

Related tools

Other checks in Search visibility

Search visibility in the methodology ·All guides

This check is one step of the website launch checklist.

Check your site

audibot runs this check and every other one in a single audit, and publishes the report with a recommendation for each finding.