How-to-fix guide

How to Fix a Missing XML Sitemap

Sitemaps are 30 minutes of setup, then they run themselves. Five steps cover generation, hosting, and submission.

Currently failing in our gallery

29 sites

See all sites that fail this check →

The fix, step by step

  1. 1

    Generate the sitemap from your platform

    WordPress has Yoast or Rank Math. Webflow generates one automatically. Rails has the sitemap_generator gem. Next.js has next-sitemap. Don't hand-write the XML — generators keep it current as you add and remove pages.

  2. 2

    Host it at /sitemap.xml

    Search engines look for /sitemap.xml first. Aliases like /sitemap_index.xml work but cost discoverability. Open https://yourdomain.com/sitemap.xml and confirm it returns valid XML, not a 404 or an HTML page.

  3. 3

    Add the Sitemap directive to robots.txt

    At the bottom of your robots.txt, add Sitemap: https://yourdomain.com/sitemap.xml. Crawlers fetch robots.txt before anything else, so the directive surfaces the sitemap on the first visit instead of waiting for them to guess.

  4. 4

    Submit through Google Search Console and Bing Webmaster Tools

    Search Console > Sitemaps > submit URL. Bing has the same flow. Submission triggers an immediate fetch and gives you per-URL indexing errors inside the dashboard, which is what you actually need to debug coverage.

  5. 5

    Stay under the 50,000-URL / 50 MB cap

    Sitemaps cap at 50,000 URLs or 50 MB, whichever you hit first. Past that, split into multiple sitemaps and link them from a sitemap index file. Most sites won't reach this — but it's a quiet failure if you do.

Sites failing this check right now (29)

sorted by overall audit score (worst first)

Want the pass-fail split for this check? See the full per-check page →

Find out which of these your own site is failing

Free audit. Same 12-check engine that scored every site on this page. No account, no credit card.

Run a free audit