Technical fix

How to fix a missing XML sitemap

A sitemap won't make a page rank, but it makes sure Google knows the page exists — which is a prerequisite for ranking. On a new or large site, a missing sitemap means pages sit undiscovered.

An XML sitemap is a file (usually at /sitemap.xml) that lists the URLs on your site you want search engines to crawl, optionally with each page's last-modified date. It's a discovery aid, especially valuable for new sites, large sites, and pages that aren't well internally linked.

Most platforms and SEO plugins generate and update a sitemap for you automatically — the fix is usually enabling it and pointing search engines to it, not hand-writing XML.

Why it matters

Google can only rank pages it has found. Strong internal linking does most of the discovery work, but a sitemap is the backstop that ensures nothing important is missed — and it gives you a clean way to tell Search Console exactly what you want crawled.

How to tell if this is you

Abby flags “Sitemap” when it can't find a sitemap at the usual locations or referenced in robots.txt. The complete fix: generate the sitemap, place it at /sitemap.xml, reference it in robots.txt, and submit it in Search Console.

Not sure if your site has this?

Run Abby's free scan — it checks this and 25 other on-page, technical, and structured-data signals in about 60 seconds, no signup.

Scan my site free

The fix

Create an XML sitemap listing all important pages. Place it at /sitemap.xml and reference it in robots.txt. Submit it to Google Search Console.

Before

<!-- no /sitemap.xml, and robots.txt does not reference one -->

After

<!-- /sitemap.xml -->
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url><loc>https://example.com/</loc></url>
  <url><loc>https://example.com/blue-suede-shoes</loc></url>
</urlset>

# and in robots.txt:
Sitemap: https://example.com/sitemap.xml

Fix it on your platform

WordPress

WordPress 5.5+ generates a sitemap at /wp-sitemap.xml automatically. For more control, use Yoast SEO (sitemap at /sitemap_index.xml) or Rank Math.

Shopify

Shopify auto-generates a sitemap at /sitemap.xml. It's updated automatically when you add/edit pages and products.

Wix

Wix auto-generates a sitemap. View it at yourdomain.com/sitemap.xml. Submit it to Google Search Console via Settings > SEO.

Squarespace

Squarespace auto-generates a sitemap at /sitemap.xml. Submit it to Google Search Console via Settings > SEO.

Magento

Go to Marketing > SEO & Search > Site Map. Click "Add Sitemap", configure, and generate. Set up a cron job for automatic regeneration.

Apache / Nginx

Use a sitemap generator tool or script. Place the generated sitemap.xml in your document root. Add the URL to robots.txt.

When this doesn’t apply

Recommended for sites with more than ~50 pages, deep navigation, or content not linked from the homepage. Small marketing sites and single-page apps with fully linked navigation usually don't need a sitemap — Google will find everything through internal links anyway.

Fix every issue at once.

Abby's free scan finds which of 26 checks your site fails. The $8.99 fix guide turns each one into a copy-ready fix for your exact pages — prioritized, with code — or bundle it with a security fix guide for $19.99.

Get my fix plan

FAQ

Do I have to write the sitemap XML by hand?

Almost never. WordPress (via Yoast/Rank Math or its built-in sitemap), Shopify, Wix and Squarespace all generate one automatically. You mainly need to confirm it exists and submit it.

Where should the sitemap live?

At your root, typically /sitemap.xml, and referenced with a Sitemap: line in robots.txt. Large sites split into a sitemap index that points to multiple sitemap files.

Will a sitemap get my pages indexed?

It helps discovery but does not guarantee indexing — Google still decides what to index based on quality and crawl budget. A sitemap ensures Google knows the URL exists; the rest is content and authority.