A r/SideProject thread from June 1, 2026 is titled "Friendly reminder to submit your sitemap to Bing. Google ended up as my 5th biggest traffic source last month". The traffic table in it puts Bing first with 330 sessions (28.25%) and Google fifth with 77 (6.59%), and it had 28 upvotes and 20 comments when I read it on December 4, 2026. Submitting a sitemap is a few clicks, while proving that each search engine picked it up takes longer, and this post is about that second half.
RankControl, an AI SEO and AEO platform, covers the click-by-click version for Shopify, Webflow, Wix, Squarespace and Ghost in its sitemap guide. This post is for developers: a valid file, the robots.txt line, the Search Console and Bing steps, IndexNow, and a short Python script that checks a sitemap and a sample of the URLs in it. I ran every snippet on December 4, 2026, and each output block is what the command printed.
The seven checks in this post, in the order they run.
The file and its rules
According to Google (which understands XML/RSS/Atom/text sitemaps) they do not care. And Bing's Sitemaps help pages mention XML, RSS 2.0, Atom 0.3/1.0, and text. Here's a 2-URL XML sitemap, validated with xmllint against the sitemaps.org schema:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/guides/sitemaps</loc>
<lastmod>2026-12-04</lastmod>
</url>
<url>
<loc>https://www.example.com/guides/indexnow?ref=a&lang=en</loc>
<lastmod>2026-11-20T08:30:00+00:00</lastmod>
</url>
</urlset>
$ xmllint --noout --schema sitemap.xsd sitemap.xml
sitemap.xml validates
The rules that decide whether a file like this gets read come from Google's build and submit page (last updated 2026-11-27 UTC) and the sitemaps.org protocol. The file must be UTF-8. URLs must be absolute, and Google crawls them "exactly as listed". Every & in a URL is written &. One file holds at most 50,000 URLs and 50MB uncompressed, and gzip is allowed. A <loc> value stays under 2,048 characters, and every URL shares the sitemap's host and protocol unless cross-submission is set up.
<priority>, <changefreq> are ignored by Google. For <lastmod>, "consistently and verifiably" correct values are used. (And Gary Illyes says in his June 26, 2023 post, a page modified seven years ago, but with yesterday as lastmod date, will eventually cease to be believed in.)
Two errors which xmllint points out (and which are real runs):
$ xmllint --noout --schema sitemap.xsd bad-amp.xml
bad-amp.xml:4: parser error : EntityRef: expecting ';'
<loc>https://www.example.com/guides/indexnow?ref=a&lang=en</loc>
^
The ampersand without escape borks it. The other file has the same order as the example in the June 2023 post, i.e. <lastmod> before <loc> which isn't accepted by the schema.
$ xmllint --noout --schema sitemap.xsd bad-order.xml
bad-order.xml:4: element lastmod: Schemas validity error : Element '{http://www.sitemaps.org/schemas/sitemap/0.9}lastmod': This element is not expected. Expected is ( {http://www.sitemaps.org/schemas/sitemap/0.9}loc ).
bad-order.xml fails to validate
didn't try if that's allowed by Google's parser. Assume this is a strict-validator result.
when you go over 50,000 URLs or 50MB, break that file up and index those parts.
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://www.example.com/sitemaps/posts.xml</loc>
<lastmod>2026-12-04</lastmod>
</sitemap>
<sitemap>
<loc>https://www.example.com/sitemaps/docs.xml.gz</loc>
<lastmod>2026-11-27</lastmod>
</sitemap>
</sitemapindex>
$ xmllint --noout --schema siteindex.xsd sitemap_index.xml
sitemap_index.xml validates
(Google index page last updated 2026-11-27 UTC) says that an index contains only sitemaps, no nested indexes, children in the directory (or below) of the index, search console allows up to 500 index files per site, submit index and (optionally, for tracking the performance of each sitemap individually) submit the children as indicated in the build page.
robots.txt
User-agent: *
Disallow: /admin/
Sitemap: https://www.example.com/sitemap_index.xml
Sitemap: https://www.example.com/news-sitemap.xml
Google says to put the line "anywhere in your robots.txt file" and "We will find it the next time we crawl your robots.txt file". Google allows multiple lines (unlimited). The help from Bing has the same directive. Sitemap of a site you don't operate? Read Sitemap lines.
$ curl -s https://rctrl.com/robots.txt | grep -i "^sitemap:"
Sitemap: https://rctrl.com/sitemap.xml
Sitemap: https://rctrl.com/docs/sitemap-index.xml
As for the RankControl guide, they said on October 19, 2026 that for two out of three Shopify stores they looked at they had the same sitemap line repeated three times and for two they had just a domain (not loading the store so use the www host if /sitemap.xml doesn't work). I didn't recheck on these stores. The standard library in Python can read the lines as well (below, from live file, rctrl.com's):
import urllib.request
from urllib.robotparser import RobotFileParser
req = urllib.request.Request("https://rctrl.com/robots.txt", headers={"User-Agent": "sitemap-check/1.0"})
rp = RobotFileParser()
rp.parse(urllib.request.urlopen(req).read().decode().splitlines())
print(rp.site_maps())
$ python3 robots_sitemaps_live.py
['https://rctrl.com/sitemap.xml', 'https://rctrl.com/docs/sitemap-index.xml']
The obvious cheat fails on that same site. RobotFileParser.read() is using the python default user agent to request the file, rctrl.com's robots.txt responds with 403 http code for that string, and read() translates 401 or 403 into disallow everything. So when the file has two sitemap lines, site_maps() printed None:
$ curl -s -o /dev/null -w "%{http_code}" -A "Python-urllib/3.14" https://rctrl.com/robots.txt
403
$ python3 -c 'from urllib.robotparser import RobotFileParser as R; rp=R("https://rctrl.com/robots.txt"); rp.read(); print(rp.site_maps())'
None
Submit in Search Console
Sequence from Google's Sitemaps report help page (no date).
Googlebot needs to be able to access your sitemap without a login (test with a live URL Inspection which should have Page fetch Successful). Then add the URL to Add a new sitemap. Submit. Google says it should be fetched right away. You need to be an owner to submit, otherwise you have to do the robots.txt line. If you're on a hosted platform (Squarespace, Wix, etc.) Google says likely the platform takes care of your sitemap. For scripts you can use a Search Console API and it covers the same.
On that page there are two important things to check for. For one, the report only shows sitemaps which were submitted via the report or the API, i.e. there's no row for a sitemap that was discovered via the robots.txt. And, it only shows the current property. So if you have http and https or www and non-www they're different lists. And in the Sitemap URL column it says "The exact URL specified when the sitemap was submitted. Redirects are not followed." Submit the final URL. So the check just prints the final URL and the number of hops. So on Dec. 4 this needed 1 hop for vercel.com/sitemap.xml
$ curl -s -L -o /dev/null -w "%{http_code} %{content_type} %{num_redirects} redirect(s) %{url_effective}\n" https://rctrl.com/sitemap.xml
200 application/xml 0 redirect(s) https://rctrl.com/sitemap.xml
$ curl -s -L -o /dev/null -w "%{http_code} %{content_type} %{num_redirects} redirect(s) %{url_effective}\n" https://vercel.com/sitemap.xml
200 application/xml; charset=utf-8 1 redirect(s) https://vercel.com/crawled-sitemap.xml
there's the Request indexing button in the URL Inspection tool for individual pages. in Google's help for many (new/updated) pages its best to use a sitemap with the updated ones having a <lastmod> tag.
Google's old way to submit, an unauthenticated ping URL, is gone. Gary Illyes' post of June 26, 2023 announced the end, gave it six months and said the old requests would then return a 404. Microsoft's post of May 13, 2022, written by Fabrice Canel, ended anonymous sitemap pings for Bing because of spam, and I read it in a Wayback capture dated August 15, 2026 because blogs.bing.com answered HTTP 500 and 504 today. Both addresses, tried today:
for engine in https://www.google.com/ping https://www.bing.com/ping; do
curl -s -o /dev/null -w "%{http_code} $engine\n" "$engine?sitemap=https://www.example.com/sitemap.xml"
done
$ bash ping_check.sh
404 https://www.google.com/ping
410 https://www.bing.com/ping
Submit in Bing Webmaster Tools
The Bing Sitemaps (undated help) page states that the sitemaps screen shows all sitemaps for a site that Bing has information for. These may include user submitted sitemaps, sitemaps imported from Google Search Console and "discovered organically by Bing". In the top right you will see Submit sitemaps. Enter a valid URL to a sitemap in an approved format for the currently selected site. Resubmission is only 1-click per sitemap. You can't resubmit multiple sitemaps at the same time. Each row will show you the dates, the last time it was processed, the status, and how many URLs Bing found. If you go to the detail page you'll get "the exact error or warning that you need to resolve".
On May 13, 2022 post it mentions that Bing and other search engines "will generally attempt to crawl known trusted submitted sitemaps at least once a day for changes". It also suggests to update the file every day.
IndexNow, for pages that just changed
IndexNow is a way to "ping" a search engine from your server to let them know you added/changed/deleted a URL. You have a utf-8 key file on your site (at the root) named for the key. You put the key in the file. The key is 8-128 characters a-z, A-Z, 0-9 and -'s You POST (up to 10,000 URLs at a time). The IndexNow documentation has the answers to this request. 200 = submitted, 202 = received (waiting for key validation). 403 = invalid key. 422 = urls are not your host. 429 = too many requests.
I've made one request to the global endpoint to see how a bad request would look. I used the reserved host www.example.com and a fake, unhosted key:
KEY=3f9c1a7e5b2d4c88a1e6d09b7c4f2a15
curl -s -o /dev/null -w "HTTP %{http_code}, %{size_download} bytes in the body\n" -X POST https://api.indexnow.org/indexnow \
-H "Content-Type: application/json; charset=utf-8" \
-d "{\"host\":\"www.example.com\",\"key\":\"$KEY\",\"keyLocation\":\"https://www.example.com/$KEY.txt\",\"urlList\":[\"https://www.example.com/guides/sitemaps\"]}"
$ bash indexnow_post.sh
HTTP 202, 0 bytes in the body
202 is the documented response to a request received but not validated by the engine. Even a 200 response "only indicates that the search engine has received your URL", as stated in their docs. So don't assume that the key file has been located just because you get a success code. For actual submissions you should use your own host/key.
If you look at the FAQ for IndexNow, it shows endpoints for their global address, Amazon, Bing, Naver, Seznam.cz, Yandex and Yep. When you submit to one, it'll be submitted to all the others. They don't list Google.
And it says IndexNow is "not designed for submitting every URL on your site at once" and recommends that you use IndexNow for important or often-changing pages and a sitemap for all pages (the full inventory).
Check the file with a script
The 84 lines below grab a sitemap, check its index (if it has one), outputs number of URL's and number of different <lastmod> values, and grabs a fixed seed sample of the urls (not following redirects) and check if each url sampled returns a 200, doesn't have a noindex in header/robots meta tag, and marks itself as canonical.
#!/usr/bin/env python3
"""check_sitemap.py URL [N]: fetch a sitemap, check it, then sample N of the URLs it lists (default 10)."""
import gzip, random, sys, time, urllib.error, urllib.parse, urllib.request
from email.message import Message
from html.parser import HTMLParser
from xml.etree import ElementTree as ET
UA = "sitemap-check/1.0 (+https://dev.to/thesearchshift)"
ACCEPT = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" # what a browser or crawler asks for
MAX_URLS = 50_000
class Stay(urllib.request.HTTPRedirectHandler): # report redirects instead of following them
def redirect_request(self, *args, **kwargs):
return None
OPENER = urllib.request.build_opener(Stay)
def get(url, follow=True, hops=0):
"""Return (final_url, hops, status, headers, body); status 0 means no answer within 20 seconds."""
req = urllib.request.Request(url, headers={"User-Agent": UA, "Accept": ACCEPT, "Accept-Encoding": "gzip"})
try:
r = OPENER.open(req, timeout=20)
except urllib.error.HTTPError as e:
r = e
except OSError:
return url, hops, 0, Message(), b""
body = r.read(3_000_000)
if r.headers.get("Content-Encoding") == "gzip" or body[:2] == b"\x1f\x8b":
body = gzip.decompress(body)
if follow and r.code in (301, 302, 303, 307, 308) and hops < 5:
return get(urllib.parse.urljoin(url, r.headers["Location"]), True, hops + 1)
return url, hops, r.code, r.headers, body
class Head(HTMLParser): # picks up the canonical link and robots meta
def __init__(self):
super().__init__()
self.canonical, self.robots = None, ""
def handle_starttag(self, tag, attrs):
a = dict(attrs)
if tag == "link" and "canonical" in (a.get("rel") or "").lower().split():
self.canonical = a.get("href")
if tag == "meta" and (a.get("name") or "").lower() == "robots":
self.robots += " " + (a.get("content") or "").lower()
def read(xml):
root = ET.fromstring(xml)
return root.tag.split("}")[-1], [(e.findtext("{*}loc", "").strip(), e.findtext("{*}lastmod")) for e in root]
def main(url, n=10):
final, hops, status, headers, body = get(url)
print(f"sitemap {final}")
print(f"fetch HTTP {status}, {headers.get('Content-Type')}, {hops} redirect(s), {len(body):,} bytes")
try:
kind, items = read(body)
except ET.ParseError as e:
print(f"FIX not well-formed XML ({e})")
return 1
if kind == "sitemapindex":
print(f"index {len(items):,} child sitemaps; reading the first: {items[0][0]}")
_, _, status, _, body = get(items[0][0])
if status != 200:
print(f"FIX child sitemap did not return 200 (got {status or 'no answer in 20 s'})")
return 1
kind, items = read(body)
urls = [u for u, _ in items]
dates = [d for _, d in items if d]
print(f"urls {len(urls):,} listed (limit {MAX_URLS:,}), {len(set(urls)):,} unique, "
f"{len(dates):,} with lastmod, {len(set(dates)):,} distinct lastmod values")
problems = 0
for u in random.Random(2026).sample(urls, min(n, len(urls))):
time.sleep(0.4)
_, _, code, h, page = get(u, follow=False)
head = Head()
head.feed(page.decode("utf-8", "replace"))
noindex = "noindex" in (h.get("X-Robots-Tag") or "").lower() or "noindex" in head.robots
canon = urllib.parse.urljoin(u, head.canonical) if head.canonical else None
ok = code == 200 and not noindex and canon == u
problems += not ok
print(f"{'ok ' if ok else 'FIX '} {code} {(h.get('Content-Type') or '').split(';')[0]} "
f"canonical={'self' if canon == u else canon} noindex={noindex} {u}")
print(f"result {problems} of {min(n, len(urls))} sampled URLs need a fix")
return problems
if __name__ == "__main__":
sys.exit(1 if main(sys.argv[1], int(sys.argv[2]) if len(sys.argv) > 2 else 10) else 0)
Run against rctrl.com's sitemap:
$ python3 check_sitemap.py https://rctrl.com/sitemap.xml
sitemap https://rctrl.com/sitemap.xml
fetch HTTP 200, application/xml, 0 redirect(s), 192,865 bytes
urls 1,043 listed (limit 50,000), 1,043 unique, 1,043 with lastmod, 66 distinct lastmod values
ok 200 text/html canonical=self noindex=False https://rctrl.com/blog/ai-visibility-metrics-that-matter-2026
ok 200 text/html canonical=self noindex=False https://rctrl.com/blog/rankcontrol-vs-koala-ai-ai-search-visibility
ok 200 text/html canonical=self noindex=False https://rctrl.com/blog/chatgpt-vs-perplexity-vs-gemini-vs-claude-best-ai-search-saas-founders
ok 200 text/html canonical=self noindex=False https://rctrl.com/blog/reddit-community-guidelines-brands
ok 200 text/html canonical=self noindex=False https://rctrl.com/blog/content-syndication
ok 200 text/html canonical=self noindex=False https://rctrl.com/blog/switch-from-averi-to-rankcontrol
ok 200 text/html canonical=self noindex=False https://rctrl.com/blog/pillar-pages-ai-search-era
ok 200 text/html canonical=self noindex=False https://rctrl.com/blog/claude-browser-navigation-make-website-agent-readable
ok 200 text/html canonical=self noindex=False https://rctrl.com/blog/rankcontrol-vs-athena-hq-b2b-saas
ok 200 text/html canonical=self noindex=False https://rctrl.com/geo-checker
result 0 of 10 sampled URLs need a fix
I ran it on 7 public sitemaps. I did the tests on December 4th, 14:41 to 14:57 UTC. 10 sampled urls, time between requests 0.4 seconds.
| Site | Sitemap after redirects | Type | URLs listed | Distinct lastmod values | Sampled URLs flagged |
|---|---|---|---|---|---|
| rctrl.com | /sitemap.xml | single file | 1,043 | 66 | 0 of 10 |
| developer.mozilla.org | /sitemap.xml | index of 10, first child gzipped | 14,931 in the first child | 796 | 0 of 10 |
| vercel.com | /crawled-sitemap.xml, 1 redirect | single file | 9,761 | 421 | 0 of 10 |
| nextjs.org | /sitemap.xml | single file | 1,161 | 44 | 0 of 10 |
| docs.python.org | /sitemap.xml | single file | 7 | none | 7 of 7 |
| webflow.com | a CloudFront URL, 1 redirect | index of 6 | 14,265 in the first child | none | 3 of 10 |
| web.dev | /sitemap.xml | index of 2 | first child gave no answer in 20 s | not read | not reached |
Flagged ones means things to read. And not verdicts. It seems like all 7 version pages in docs.python.org listed (including /3/) refer to https://docs.python.org/3/index.html as their canonical: and it's probably intentional.
$ python3 check_sitemap.py https://docs.python.org/sitemap.xml
sitemap https://docs.python.org/sitemap.xml
fetch HTTP 200, text/xml, 0 redirect(s), 13,226 bytes
urls 7 listed (limit 50,000), 7 unique, 0 with lastmod, 0 distinct lastmod values
FIX 200 text/html canonical=https://docs.python.org/3/index.html noindex=False https://docs.python.org/3.11/
FIX 200 text/html canonical=https://docs.python.org/3/index.html noindex=False https://docs.python.org/3.13/
FIX 200 text/html canonical=https://docs.python.org/3/index.html noindex=False https://docs.python.org/3.15/
FIX 200 text/html canonical=https://docs.python.org/3/index.html noindex=False https://docs.python.org/3/
FIX 200 text/html canonical=https://docs.python.org/3/index.html noindex=False https://docs.python.org/3.14/
FIX 200 text/html canonical=https://docs.python.org/3/index.html noindex=False https://docs.python.org/3.12/
FIX 200 text/html canonical=https://docs.python.org/3/index.html noindex=False https://docs.python.org/3.16/
result 7 of 7 sampled URLs need a fix
there are <meta name="robots" content="noindex, follow"> on three webflow.com profile pages of the first child sitemap of the 10 pages in sample... this means that some pages in the sitemap tell not to index. For web.dev the index takes half a second to respond. both child files in curl on same day took 36 to 45 seconds with HTTP 500. No idea how would Search Console report such case.
That first draft of script doesn't send an Accept header at all. nextjs.org responded text/markdown for 10/10 sampled URLs. Same with vercel.com, 3/10. No canonical tag in body. So the check flagged those pages (for nextjs.org, the markdown response specified canonical in Link header, but that doesn't get parsed by the script). When I added an Accept header for HTML, both returned text/html w/self-canonical on every sampled page. Browsers send this header, if you don't then you might get a different version of the page. So content type column in the output is part of the check.
Read the reports
Search Console's Sitemaps report gives each sitemap a status, according to Google's help page:
| Status | What the page says | What to do |
|---|---|---|
| Success | The sitemap was fetched and read without any errors, and all URLs are queued for crawling | Compare Discovered pages with the unique count the script printed |
| Has errors (the page also words it "Sitemap had X errors") | Fetched but at least one error; URLs parsed without errors are still queued | Open the row and fix each listed error |
| Couldn't fetch | Google could not retrieve the file | Check for a robots.txt block (Google respects it for sitemaps), a manual action, a wrong URL, a server error or low crawl demand |
For a fetch failure, do a live URL Inspection of your sitemap URL (so Crawl allowed? should be Yes, and Page fetch Successful). If the fetch fails, it will try again for a few days before giving up. Fix whatever the problem is, and resubmit.
Discovered pages is a count of the page URLs parsed out of the sitemap. Duplicates are only counted once. Index children are summed. Google says there is "no guarantee" that any of these have or will be crawled or indexed. Google sends you to Page indexing report (filterable by sitemap) for the indexed number. Success status only means Google has read it. The build page says submitting a sitemap is "merely a hint". In RankControl's guide they describe the difference between a sitemap read and page indexed as hint gap. They say the solution is on the page. Links from pages that Google already visits. And content is unique to this page on your site. For URL inspection the results are from the last index of the page unless you do a Live test.
Read your logs
the reports are what engines say. your access log is what they requested. did this for 27 daily files from secrepo.com public Apache logs (secrepo.com/self.logs, November 4 thru December 1, 2026) (no sitemap there because /sitemap.xml 404s, empty robots.txt).
gzip -dc access.log.*.gz | grep -i sitemap | grep -i -E 'googlebot|bingbot' \
| awk '{print $9, $7}' | sort | uniq -c | sort -rn
$ bash log_check.sh
4 404 /sitemap.xml.gz
4 404 /sitemap.xml
4 404 /sitemap.txt
2 404 /sitemaps.xml
2 404 /sitemap_index.xml
2 301 /sitemap.xml.gz
2 301 /sitemap.xml
2 301 /sitemap.txt
In those files there are 89,434 requests. Of those, 241 have a user agent of Googlebot. 1,222 have a user agent of bingbot. There is no request for a sitemap in the Googlebot user agents. All 22 of the above requests are from bingbot. They are requesting 5 different guess paths. Of those, 16 result in a 404 and 6 result in a 301. It's possible to fake user agent strings. I did not look at the source addresses. On a site with a sitemap, once you've submitted it, the line you are looking for is a 200 on the sitemap path from Googlebot or bingbot.
After the sitemap
RankControl's Action Items lists what to work on next on your site, each item with the evidence behind it and a suggested fix. Its home page describes them as crawl problems, AI bot lockouts, index status and title fixes across the whole site. It is a paid plan at $400 a month with a 7-day free trial, while the script above is free and only tests the sample you ask it to, when you run it.

Top comments (0)