Direct answer
Check the sitemap of a website by finding the file, reading what it lists, and asking Google what it did with it. Look for the Sitemap line in robots.txt, open the file it names, confirm every important page is listed once, then check the Sitemaps report in Search Console for errors and the number of URLs Google discovered.
What are you actually checking?
A sitemap is a file that lists the addresses the site wants crawled, per proxynet.io. A check answers three different questions, and each needs its own step. Mix them up and you will trust an answer to a question you never asked.
First, does the file exist, and where. A sitemap can live at several addresses, and guessing the wrong one tells you nothing. Second, what does it list. A file can open cleanly and still miss your best pages, list deleted ones, or point at the wrong versions. Third, what did Google do with it. Only the Sitemaps report shows whether Google read the file, how many URLs it found, and which ones it could not use.
| Check | What it answers | Tool |
|---|---|---|
| Find the file | Whether a sitemap exists, and its address | Browser, robots.txt |
| Read the file | What it lists, and whether the entries are sound | Browser, view source |
| Ask Google | Whether Google read it, and how many URLs it found | Search Console |
Step 1: Check robots.txt for the Sitemap line
Start with robots.txt, because it is where a site announces its sitemap. Open the domain followed by /robots.txt and read every line that starts with Sitemap, per contextbolt.com. Google’s documentation says you can specify multiple sitemap lines, and there is no limit to the number of sitemaps you can include in your robots.txt file, per contextbolt.com, citing Google.
On 16 Nov 2026, contextbolt.com checked 22 well-known sites: robots.txt named the sitemap on 19 of them, and the two steps of robots.txt plus /sitemap.xml together found a sitemap on all 22, per contextbolt.com. A site can name several files, so read all of them, not just the first.
Our guide on how to check robots.txt of a website shows the full robots.txt routine, including the Sitemap line.
Step 2: Try the common addresses
When robots.txt names nothing, guess. Try these places in order: /sitemap.xml, then /sitemap_index.xml, per proxynet.io. Each platform writes its sitemap to a predictable place. Since WordPress 5.5, core publishes an index at /wp-sitemap.xml and adds it to robots.txt, while SEO plugins such as Yoast replace it with their own index, usually /sitemap_index.xml, per proxynet.io. WordPress sites often use /sitemap.xml, /sitemap_index.xml or /wp-sitemap.xml, and if the site uses Yoast SEO or Rank Math, start with /sitemap_index.xml, per slickplan.com. Other common paths include /sitemap, /sitemap1.xml, /sitemap/sitemap.xml, /sitemapindex.xml, /atom.xml, /rss.xml and .xml.gz, per slickplan.com.
Watch the address bar as each one loads. A redirect is the site telling you where the real file is, per contextbolt.com. On contextbolt.com, /sitemap.xml redirects to /sitemap-index.xml, and on yoast.com it redirects to /sitemap_index.xml, per contextbolt.com. Yoast’s spec has /sitemap.xml redirect to /sitemap_index.xml, per contextbolt.com. Follow the redirect and use the address it lands on.
A file that opens is a sitemap if its first tag, after the <?xml line, is <urlset>, a list of pages, or <sitemapindex>, a list of other sitemaps, per contextbolt.com. If no common address answers with a sitemap, the site either has no sitemap or keeps it at an address it does not advertise. Google’s Sitemaps report help says a site of about 500 pages or fewer where every page can be reached by links from the homepage probably does not need a sitemap, per contextbolt.com, citing Google. For your own site, if you want one, turn on the sitemap your platform or SEO plugin already offers, per contextbolt.com. If a site has no sitemap, create one with Yoast SEO or Rank Math for WordPress, per slickplan.com.
Step 3: Open the file and read it
A sitemap with two pages looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/page1</loc>
<lastmod>2026-12-01</lastmod>
</url>
<url>
<loc>https://www.example.com/page2</loc>
</url>
</urlset>
The sitemap protocol requires only <loc>; <lastmod>, <changefreq> and <priority> are optional, per proxynet.io. Google ignores the last two and uses lastmod only when it is consistently and verifiably accurate, per proxynet.io, citing Google. Read the file the way Google does: the address in each <loc> is the entry, and lastmod is the only date that matters.
Two limits shape what you see. One file holds at most 50,000 URLs and 50 MB (52,428,800 bytes) uncompressed, per proxynet.io. A site over 50,000 pages needs a sitemap index file, per slickplan.com, and a sitemap index can point to up to 50,000 sitemaps, per contextbolt.com, citing Google help. A sitemap index has <sitemapindex> as its root and one <sitemap> element per child file, each with a <loc> and an optional <lastmod>, per proxynet.io. On shopify.com, /sitemap.xml opened a real sitemap, but a different file from the index robots.txt names, per contextbolt.com.
Work through these checks on what you find.
| What the address returns | What it means |
|---|---|
| 200 with a <urlset> root | A sitemap listing pages |
| 200 with a <sitemapindex> root | An index listing child sitemaps; open each child |
| 301 or 302 to another address | The file moved; follow the redirect and use the new address |
| 404 | No sitemap at that address; try the next one |
| A web page or a login screen | Not a sitemap; the guess missed |
| A .xml.gz file | A compressed sitemap; the first two bytes 1f 8b are the gzip signature |
One more detail keeps the result honest: the file is UTF-8, and & is written as &, per proxynet.io, so a raw & in an address is a broken entry.
Step 4: Check the entries against the live site
Finding the file is half the job. A sitemap can sit at the right address and still be unreadable to Google: blocked by robots.txt, redirecting, full of URLs on the wrong host, or broken XML, per contextbolt.com. Google calls a submitted sitemap merely a hint, per proxynet.io, so expect differences between the file and the live site.
Check each important page against the file. A deleted page that still appears in the file returns 404 or 410, so drop it from your list, per proxynet.io. An address can be in the sitemap and closed in robots.txt, and robots.txt is the owner’s explicit rule, so skip the address, per proxynet.io. A subdirectory sitemap covers only that directory, and each subdomain has its own robots.txt and sitemap, per proxynet.io.
Two conflicts matter most. First, a page that is both in the sitemap and noindexed is sending contradictory signals, and one of them is wrong. Our guide on how to check if a page is noindex shows how to check the noindex side. Second, a sitemap should include only canonical URLs intended for indexing, and exclude duplicate or non-public pages such as admin pages or login pages, per acciyo.com. If a listed page is a duplicate, the canonical is the fix, not the sitemap.
A sitemap lists pages published on purpose, not hidden ones: login-only and noindex pages stay outside this method, per proxynet.io. If the file lists pages you never meant to publish, the generator is including too much, and the fix is in its settings, not in the file.
Step 5: Ask Google what it sees
Open Google Search Console and go to the Sitemaps report under Indexing. It lists every sitemap you submitted and how many URLs Google discovered in each file, per proxynet.io. Check three things: the status says Success, the last read date is recent, and the discovered URL count is close to the number of entries in the file. A large gap means Google skipped entries, usually because they redirect, return errors, or sit outside the property.
One limit needs care. The Sitemaps report does not show any sitemaps discovered through a robots.txt reference or other discovery methods, per contextbolt.com, citing Google’s Sitemaps report help. A file Google found on its own through robots.txt will not appear in the list unless you also submitted it. Submit the address in the Sitemaps report so you can see when Google last read it and any errors, per contextbolt.com.
For a single page, use URL Inspection instead. It shows whether Google knows the page and whether the sitemap is the way it found it. Submitting a sitemap is not mandatory, but it can help Google discover and process URLs more efficiently, especially on new sites, large sites, recently updated sites or sites with weak internal linking, per slickplan.com. Keep the sitemap up to date: after publishing new content or deleting pages, regenerate and re-submit the sitemap, per acciyo.com.
Worked example: this site’s own sitemap index
This site’s own live sitemap index shows what a healthy setup looks like. It was checked live on 5 Dec 2026 with a browser load and curl headers.
The index returns 200 with Content-Type text/xml, it is 794 bytes and 22 lines long, and it lists 5 sitemaps: post with 69 URLs, page with 7 URLs, category with 6 URLs, post_tag with 20 URLs, and author with 1 URL, 103 URLs in total. The post sitemap’s lastmod is 2026-12-05T05:29:28+00:00, the time Article 22 was published. The robots.txt Sitemap line names the index. Both /sitemap.xml and /wp-sitemap.xml return 301 to the index.
Here are six posts, each checked against the post sitemap. Every one is listed exactly once.
| Live URL on this site | In the post sitemap | Words in the slug | Characters in the slug |
|---|---|---|---|
| /how-to-do-keyword-research-small-business-website-free/ | Yes | 9 words | 54 characters |
| /how-to-use-long-tail-keywords-for-small-business-seo/ | Yes | 10 words | 52 characters |
| /how-to-find-low-competition-keywords-for-a-small-business/ | Yes | 10 words | 57 characters |
| /how-to-check-keyword-difficulty-for-free/ | Yes | 7 words | 40 characters |
| /how-to-check-keyword-difficulty-in-bulk/ | Yes | 7 words | 39 characters |
| /how-to-export-keywords-from-google-search-console/ | Yes | 8 words | 49 characters |
One more check confirms the setup holds together: the post sitemap lists 69 URLs, which is the 68 published posts plus the homepage, and every entry carries a lastmod. A working sitemap setup is boring on purpose. All six slugs are 39 to 57 characters, each post is listed once, and nothing was typed into a sitemap file by hand for any of them. The check is worth doing anyway, because a sitemap that stops updating after a plugin change can leave new pages undiscovered for weeks.
How to fix a sitemap problem on WordPress
Find the source before you change anything, because the fix depends entirely on where the file comes from.
- No sitemap at all. In Yoast SEO, check that XML sitemaps are turned on under SEO, then Settings, then Features. In Rank Math, the same toggle sits under Sitemap Settings. A sitemap that is off in the plugin will not appear at any address.
- The wrong file is served. Yoast serves /sitemap_index.xml, and /sitemap.xml redirects to it. If /sitemap.xml opens a different file, a second plugin or a physical file in the site root is serving it instead. Remove the physical file so the plugin’s file is the one Google reads.
- New pages are missing. Check that the post type is included in the plugin’s sitemap settings, and that the missing page is published, not a draft, and not set to noindex. A page the plugin excludes will never appear in the file.
- The Sitemaps report says Couldn’t fetch. The address is the first thing to check, per contextbolt.com: open the sitemap URL in a browser and confirm it answers 200 with XML. Then check that robots.txt does not block the sitemap file itself.
After a fix, verify rather than assume. Reload the live file, confirm the missing page is listed, and re-submit the address in the Sitemaps report. Google generally reads a submitted sitemap within a day, so an unchanged discovered count the next morning is not evidence the fix failed.
How often should you check your sitemap?
A quarterly pass is enough for most small business sites, but check at the right moments.
- After a publish: check that the new page appears in the post sitemap within a day.
- After a plugin or theme update: open the index once and confirm all five child files still answer 200.
- After a migration: check that the new origin serves its own index and that the Sitemap lines point to the new addresses.
- After deleting pages: confirm the deleted URLs leave the file, or Google will keep trying them.
- After a Search Console warning: open the Sitemaps report and read the error for the flagged file.
- Every quarter: fold the sitemap check into your regular audit. Our guide on how to do an SEO audit for a small business website shows the full routine.
Keep a short list of the URLs that must be listed, and of the pages that must stay out. When a check shows an entry you do not recognise, check it against those lists first.
Common mistakes to avoid
Guessing one address and stopping. A redirect is the site telling you where the real file is, and a guess can land on part of a sitemap and look like all of it.
Trusting a clean Sitemaps report as proof every page is listed. The report shows what Google read, not what the file should contain. Only a per page check against the file catches a missing entry.
Treating a sitemap as a guarantee of indexing. A sitemap is merely a hint, and a listed page still has to pass Google’s quality and crawl checks before it appears in results.
Listing pages you do not want indexed. A sitemap should include only canonical URLs intended for indexing, per acciyo.com. A noindexed page in the sitemap wastes Google’s attention and sends a contradictory signal.
Checking only the file and never Google’s view. A file can parse cleanly and still be ignored by Google. The Sitemaps report is the only place that shows what Google actually did with it.
Frequently asked questions
How do I find the sitemap of a website?
Open the site’s robots.txt file and look for a line that starts with Sitemap, per contextbolt.com. If there is none, try /sitemap.xml, then /sitemap_index.xml, /sitemap-index.xml and /wp-sitemap.xml, per contextbolt.com. On 22 sites checked on 16 Nov 2026, those two steps together found a sitemap on all 22, per contextbolt.com.
Can I find a sitemap using Google?
Sometimes. A search such as site:example.com filetype:xml can turn one up, per contextbolt.com, because Google indexes some sitemap files like pages. Treat it as a last resort: search operators are a backup method, not a complete sitemap inventory, per slickplan.com, and Google answers scripted queries with an unusual-traffic check, per proxynet.io.
Why does /sitemap.xml return 404 when the site has a sitemap?
Nothing requires a sitemap to live at /sitemap.xml, per contextbolt.com. Robots.txt is where a site announces the address, and on 19 of the 22 sites checked it did, per contextbolt.com.
How many URLs can one sitemap hold?
One file holds at most 50,000 URLs and 50 MB uncompressed, per proxynet.io. A site over 50,000 pages needs a sitemap index file, per slickplan.com, and an index can point to up to 50,000 sitemaps, per contextbolt.com, citing Google help.
Does Google have to index every URL in my sitemap?
No. Google calls a submitted sitemap merely a hint, per proxynet.io. A listed page still has to pass Google’s crawl and quality checks, and Google may skip entries that redirect, return errors, or sit outside the property.
What should I do if my site has no sitemap?
Turn on the sitemap your platform or SEO plugin already offers, per contextbolt.com. On WordPress, create one with Yoast SEO or Rank Math, per slickplan.com, then submit the address in Search Console’s Sitemaps report, per contextbolt.com.
Conclusion
Checking a sitemap is three small checks: find the file through robots.txt or the common addresses, read the index and the entries it lists, and ask Google what it did with it in the Sitemaps report. When the file answers 200, every important page is listed once, and Google reports success with a matching URL count, the site is set. When an entry is missing or Google reports an error, fix the generator and check the file again.

