How to Submit a Sitemap to Google, and Why It Shows 0 Pages
By Rahul Vithala · · 7 min read

You built your website, someone told you to "submit the sitemap to Google", and you did. Search Console says Success. But next to it, under Discovered pages, there's a big fat 0. So did it work or not? Confusing, isn't it?
I had exactly this on my own site. In this article I will show you how to submit a sitemap the right way, what each status means, and the real reasons a sitemap shows 0 pages, along with how to fix each one.
The short answer: to submit a sitemap, open Google Search Console, go to Indexing, then Sitemaps, paste your sitemap address and press Submit. If it shows 0 discovered pages, it is usually because Google has not read it yet, the address points to the wrong version of your site, the file is blocked or broken, or it is an old sitemap Google stopped reading.
What is a sitemap, and do you really need one?
A sitemap is simply a file that lists the pages of your website, so Google doesn't have to find each one by following links. Most sites have it at an address like yourdomain.com/sitemap.xml or yourdomain.com/sitemap_index.xml.
Do you need one? For a small site where every page is linked from the menu, Google will probably find everything anyway. But a sitemap costs nothing, it helps new sites get found faster, and Search Console uses it to show you which of your important pages are indexed. So yes, personally I add one to every site.
If you use WordPress, you already have one:
- Without an SEO plugin: WordPress makes one at /wp-sitemap.xml (since version 5.5).
- With Yoast SEO or Rank Math: the plugin replaces it with /sitemap_index.xml.
Open the address in your browser first. If you see a list of links, you are good to go.
How to submit your sitemap to Google, step by step
- Open Google Search Console and pick your website. If you haven't added your site yet, do that first and verify it.
- In the left menu, under Indexing, click Sitemaps.
- Under Add a new sitemap, type your sitemap address, for example sitemap_index.xml.
- Press Submit.
That's it. You only need to do this once. Google keeps reading the sitemap on its own after that, and new pages get picked up automatically.
Also add one line to your robots.txt file, so every search engine can find the sitemap, not only Google:
Sitemap: https://yourdomain.com/sitemap_index.xml
Most SEO plugins add this line for you. Open yourdomain.com/robots.txt to check.
One thing you can skip: old guides tell you to "ping" Google with your sitemap address. Google retired that ping endpoint in 2023, so it does nothing now.
What the sitemap status means
- Success: Google read the file without problems. It does not mean the pages are indexed. More on that below.
- Has errors: Google read it but found problems. Click the sitemap row to see which ones.
- Couldn't fetch: Google could not download the file. On a fresh submission this is often temporary, so give it a day or two. If it stays, check that the address opens in a private browser window.
My own sitemap that showed 0 pages
When I opened the Sitemaps report on rahulvithala.com last month, there was only one sitemap listed: sitemap.xml, submitted back in February 2018. Its status said Success. Discovered pages: 0. And the last time Google had read it was 26 November 2020.
Six years later, Google was still showing a sitemap it had not looked at in years. My site had been rebuilt since then, and nobody had submitted the new sitemap.
On 25 November 2026 I submitted the current one, sitemap_index.xml. Google read it the same day. A few days later it showed Success, 213 discovered pages.
The lesson? A green "Success" means very little on its own. Always look at the date in the Last read column and the number next to it.
Why your sitemap shows 0 discovered pages
1. Google simply has not read it yet
Right after you submit, the count is often 0. Wait a few days and check the Last read date. If it changed and the count is still 0, keep reading.
2. You submitted an old or wrong sitemap
Like in my case. If you changed your SEO plugin or rebuilt the site, the sitemap address may have changed too. Open each submitted sitemap address in your browser. If it shows an error or an empty page, submit the correct one.
3. The sitemap is a sitemap index
Yoast, Rank Math and many other tools make a sitemap index, a sitemap that only lists other sitemaps (posts, pages, categories). Search Console shows the index first. Click on it to see the child sitemaps and their counts.
4. The addresses don't match your site
If your website runs on https://www.yourdomain.com but the sitemap lists http://yourdomain.com, Google sees them as different addresses. With a URL-prefix property in Search Console, the sitemap's addresses must match that exact version. Make sure your sitemap uses the same version of your domain that visitors end up on.
5. robots.txt blocks the sitemap or the pages
If robots.txt blocks the folder your sitemap lives in, Google can't read it. Open yourdomain.com/robots.txt and look at the Disallow lines. While you are there, make sure it does not block your main content either. That one mistake cost my own site a lot of visibility, which I wrote about in why your website is not showing on Google.
6. The file is broken or not really a sitemap
Sometimes the address returns a normal web page, a login page or a 404 page instead of XML. Security plugins and caching plugins can cause this. Open the address in a private window. You should see a clean list of links, not your site's design.
7. The sitemap is too big
One sitemap can hold up to 50,000 addresses or 50MB, whichever comes first. Bigger sites need several sitemaps and an index. SEO plugins handle this for you.
Discovered pages is not the same as indexed pages
This confuses a lot of people. Discovered pages only means Google found that many addresses in your sitemap. It does not mean all of them are on Google.
To see how many are actually indexed, open Indexing, then Pages, and use the dropdown at the top to switch from "All known pages" to "All submitted pages". Now the report shows indexed and not indexed only for the pages in your sitemap.
If many of them are "Crawled - currently not indexed" or "Discovered - currently not indexed", the sitemap is fine. The question then is why Google is not indexing those pages, which is a content or technical problem, not a sitemap problem.
Sitemap tips that actually matter
- Only list pages you want on Google. No redirected pages, no noindex pages, no thin tag pages.
- Keep lastmod honest. Google's own documentation says it ignores the priority and changefreq values, and uses lastmod only when it is consistently accurate.
- Remove old sitemaps you no longer use from Search Console, so the report shows only what matters.
- Submit to Bing too. Bing Webmaster Tools can import your sites straight from Search Console, and Bing results also feed other search tools.
The full rules are in Google's guide to building a sitemap. And if you want someone to check your sitemap, robots.txt and indexing together, my free SEO and AI audit does exactly that.
Frequently asked questions
How do I submit a sitemap to Google?
Open Google Search Console, go to Indexing, then Sitemaps, enter your sitemap address under Add a new sitemap and press Submit. You only need to do it once.
Why does my sitemap say Success but 0 discovered pages?
Usually Google has not processed it yet, it is an old sitemap Google stopped reading, it is a sitemap index whose pages show under the child sitemaps, or the addresses inside don't match your site's version.
How long does Google take to read a sitemap?
Often within a day, sometimes a few days. On my own site, Google read the new sitemap on the same day I submitted it.
Do I need to resubmit my sitemap after adding new pages?
No. Google reads your sitemap again on its own. Resubmit only if the sitemap address changes.
Does submitting a sitemap guarantee indexing?
No. A sitemap helps Google find your pages. Whether each page gets indexed still depends on its content and whether Google can read it.
That's all for now. Go and check your Sitemaps report today, especially the Last read date. You may be surprised like I was. Please do share your views with me on LinkedIn.