What it means
We found no XML sitemap: robots.txt lists none and /sitemap.xml doesn't answer with one. A sitemap is a file that lists the pages you want search engines to know about.
Why it matters
Crawlers find pages by following links, so pages that few others link to can take a long time to be discovered. A sitemap lists them all in one place, tells crawlers when they last changed, and lets webmaster tools report which listed pages were indexed.
How to fix it
- Generate a sitemap: most CMSs and frameworks can do it, often through an SEO plugin.
- Publish it at
/sitemap.xml(or a sitemap index that lists several files). - List only pages that answer 200 and should be indexed, with their canonical addresses.
- Add a line to robots.txt:
Sitemap: https://example.com/sitemap.xml. - Add it in Google Search Console and Bing Webmaster Tools, under Sitemaps.
Check it worked
Run the SEO audit again. The sitemap section should show the file and its URL count, and the finding should be gone.