On this page
What this issue is
An XML sitemap is a file, usually at /sitemap.xml, that lists the URLs on your site you want search engines to know about. It can also include the date each page last changed. Crawlers such as Googlebot and Bingbot read it as a shortcut alongside normal link-following.
This issue means no such file exists, or it is not reachable at any address a crawler would find. A sitemap is not a ranking factor and it does not force indexing. It helps discovery.
Why it costs you leads or sales
Without a sitemap, search engines rely only on links to find your pages. New landing pages, product pages and orphan pages (pages nothing links to) can take longer to be found, or be missed. A page that is not indexed cannot bring in leads.
The effect is usually modest on a small, well-linked site and bigger on large, new or frequently changing sites. That is why the impact is rated medium.
Example: illustrative days until a new page is first crawled. Real timing varies by site and is never guaranteed.
- Page publishedNew landing page goes live
- Sitemap lookup/sitemap.xml returns 404
- Page discoveredOnly if a crawler finds a link
- IndexedDelayed or missing
- Organic leadNo search traffic
Without a sitemap, discovery depends on internal links alone.
How to check if your site has it
Try the common addresses
Open /sitemap.xml, /sitemap_index.xml and /wp-sitemap.xml on your domain. A page of XML or a list of links means one exists. A 404 means it does not.
Read robots.txt
Open /robots.txt and look for a line starting with Sitemap:. It may point to a non-standard address.
Check Google Search Console
Go to Indexing > Sitemaps. If the list is empty, nothing has been submitted.
Check from the command line
Run the command below and look for a 200 status.
curl -I https://www.example.com/sitemap.xml
curl -s https://www.example.com/robots.txt | grep -i sitemapHow to fix it
Most platforms can create a sitemap for you. Use the built-in one where it exists rather than adding a second generator.
Use the core sitemap
WordPress 5.5 and later creates /wp-sitemap.xml by default. If it 404s, check Settings > Reading: Search engine visibility must be unticked, and a plugin or theme may have disabled it.
Or enable your SEO plugin's sitemap
In Yoast SEO, open Settings > Site features and turn on XML sitemaps (address /sitemap_index.xml). In Rank Math, open Sitemap Settings and switch it on. Use only one plugin's sitemap.
Save permalinks
Go to Settings > Permalinks and click Save Changes to refresh rewrite rules if the address still 404s.
Use the automatic sitemap
Shopify creates /sitemap.xml itself. You cannot edit it directly. If it is missing, check the store is not password protected under Online Store > Preferences.
Use the automatic sitemap
Wix creates /sitemap.xml for published sites. To exclude a page, open its SEO settings and turn off the option to show it in search results.
Use the automatic sitemap
Squarespace creates /sitemap.xml for you. Make sure the site is not set to private and the pages are not marked hidden from search.
Enable auto-generate
Open Site settings > SEO, find Sitemap and turn on Auto-generate sitemap, then publish the site. Use Sitemap indexing settings per page to exclude pages.
Generate the file
Use your framework's sitemap library or a build script to write sitemap.xml with every indexable URL, using full https addresses.
Serve it at the root
Make sure the file returns 200 with an XML content type at /sitemap.xml.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/</loc>
<lastmod>2025-01-15</lastmod>
</url>
<url>
<loc>https://www.example.com/pricing</loc>
<lastmod>2025-01-10</lastmod>
</url>
</urlset>Reference it in robots.txt
Add a line such as Sitemap: https://www.example.com/sitemap.xml to /robots.txt.
Submit it in Google Search Console
Open Indexing > Sitemaps, enter the sitemap address and click Submit.
Submit it in Bing Webmaster Tools
Open Sitemaps, add the address and submit.
Include your money pages
Check that service, product and landing pages are listed, and that noindex pages are not.
How to confirm it's fixed
- /sitemap.xml (or your sitemap address) returns status 200
- The file contains valid XML with <urlset> or <sitemapindex>
- Every URL uses your final https address
- Your key landing and product pages are listed
- robots.txt contains a Sitemap: line
- Search Console shows the sitemap with status Success
How to prevent it happening again
Sitemaps disappear after plugin changes, theme switches, migrations and rebuilds. Add a sitemap check to your launch and migration checklists. Keep only one sitemap generator active. After any redesign, reopen the sitemap address and Search Console report.
No sitemap
- /sitemap.xml returns 404
- Search Console has no sitemap listed
- New pages found only through links
Sitemap in place
- /sitemap.xml returns 200 with valid XML
- Referenced in robots.txt and submitted
- New pages listed for crawlers
How FunnelGuard handles this
FunnelGuard does not check for a missing XML sitemap yet. Its discovery step may fetch the sitemap to find pages, but it does not report when one is absent. A sitemap check is a possible future addition.
What FunnelGuard does do is run your real customer journeys, such as lead forms and checkouts, on a schedule and check each step and tracking hit. That covers whether visitors can convert, not whether search engines can find the page.
To watch for a missing sitemap, check the Sitemaps report in Google Search Console and Bing Webmaster Tools every month, and re-test /sitemap.xml after each migration or plugin change. The free read-only FunnelGuard website audit is another way to review your site.
Questions people ask
Do I need an XML sitemap for my website?
It is not required, but it is strongly recommended. Search engines can find pages through links, yet a sitemap speeds up discovery and helps with new, large or poorly linked pages. It costs little to add.
Why is my sitemap.xml showing a 404 error?
Usually no sitemap has been generated, the plugin's sitemap feature is turned off, or rewrite rules are stale. On WordPress, enable the sitemap in your SEO plugin and save Settings > Permalinks. On other platforms, check the sitemap setting and that the site is published and not private.
How do I create an XML sitemap?
Use your platform's built-in sitemap or an SEO plugin. WordPress, Shopify, Wix, Squarespace and Webflow can all generate one automatically. On custom sites, use a sitemap library or script to write a sitemap.xml file.
Where is my sitemap located?
Common addresses are /sitemap.xml, /sitemap_index.xml and /wp-sitemap.xml. Your robots.txt file may also contain a Sitemap: line giving the exact address. Google Search Console shows submitted sitemaps under Indexing > Sitemaps.
How do I submit a sitemap to Google?
Open Google Search Console, choose your property, go to Indexing > Sitemaps, enter the sitemap address and click Submit. Add a Sitemap: line to robots.txt too so other crawlers find it.
Will adding a sitemap improve my rankings?
Not directly. A sitemap helps search engines discover and recrawl your pages, but it does not boost rankings or guarantee indexing. Content quality and links still matter.
Does FunnelGuard check for a missing XML sitemap?
No, not yet. It is a possible future check. For now, use Search Console and Bing Webmaster Tools, and test your sitemap address manually after site changes.
Related issues
- SEO-100Sitemap not referenced in robots.txtFix guide
- SEO-101Sitemap not submitted in Search Console / Bing WebmasterFix guide
- SEO-102Sitemap returns 404 or 5xxFix guide
- SEO-104Sitemap stale: new pages missingFix guide
- SEO-110Money pages missing from the sitemapFix guide
- SEO-113Plugin generates duplicate sitemaps (Yoast plus Rank Math)Fix guide