Create and submit an XML sitemap

Tell search engines exactly which pages to index with a machine-readable sitemap.

What it means

An XML sitemap is a file at /sitemap.xml that lists all your important pages, their last-modified dates, and how often they change. Search engines read it to discover content they might otherwise miss, especially on large sites or sites with few internal links.

Why it matters

Without a sitemap, search engines rely on crawling links to find pages. New or orphaned pages can go unindexed for weeks. A sitemap also lets you signal priority and freshness, giving you control over how Googlebot spends its crawl budget.

How to fix it

  1. Generate the sitemap: most CMS platforms (WordPress, Shopify, Webflow) do this automatically. Check Settings or install a plugin like Yoast SEO or Rank Math.
  2. For custom sites, use a sitemap generator tool (xml-sitemaps.com or a build-step library) or write the XML manually: each <url> entry needs a <loc> and ideally a <lastmod>.
  3. Place the file at https://yourdomain.com/sitemap.xml and verify it's publicly accessible.
  4. Reference the sitemap in your robots.txt file: add the line Sitemap: https://yourdomain.com/sitemap.xml at the bottom.
  5. Submit the sitemap in Google Search Console (Indexing → Sitemaps → Add). This triggers Googlebot to process it immediately.
  6. Exclude low-value pages: no-index pages, pagination, filtered URLs, and admin paths should not appear in the sitemap.

Common mistakes

How to check it worked

Submit the sitemap in Search Console → Sitemaps. The status should read 'Success' and the discovered-URL count should match your page count.

Helpful tools

Not sure if this affects your site? Analyze your website for free or compare it with a competitor.

Related guides

Browse all 38 fix guides