SEO & AEO

XML Sitemaps and robots.txt: A Checklist That Prevents Costly Mistakes

What sitemaps and robots.txt are for, what Google says about each, the mistakes that hide whole sites from search, and a checklist for before and after launch.

By Biply Team · · 4 min read

Sitemaps and robots.txt are small files with large consequences. A missing sitemap rarely hurts a small site. A wrong robots.txt rule can hide the whole site. Both are easy to check once you know what each file is actually for, which is not always what people assume.

The short answer: use a sitemap to list the URLs you want found and keep it current; use robots.txt to manage crawl traffic, not to hide pages; and check both before and after every launch. The costliest mistake is a block left over from staging.

A disclosure: Biply offers SEO and AEO, including launch checks. This guide is platform-neutral; our Webflow settings checklist shows how one platform exposes these files.

What sitemaps are for

Google’s documentation says:

  • A sitemap helps search engines discover URLs on your site, but it does not guarantee they will be crawled or indexed.
  • If your pages are properly linked, Google can usually discover most of your site.
  • A sitemap can help when your site is new and has few external links, or when it is large. A small site means about 500 pages or fewer.
  • Your CMS may already generate one.
  • For choosing between duplicate URLs, a sitemap is a weak signal compared with redirects and rel=canonical.

What robots.txt is for

Google’s introduction to robots.txt says:

  • It is used mainly to avoid overloading your site with requests.
  • It is not a mechanism for keeping a web page out of Google.
  • A page disallowed in robots.txt can still be indexed if other sites link to it.
  • Do not use it to hide pages, and rules may not be supported by all search engines.
  • If you use a CMS, you may not be able to edit the file directly.

Google’s overview of crawlers adds that common crawlers always respect robots.txt rules for automatic crawls, while special-case crawlers may ignore them. A robots.txt file is also publicly visible, so it should never be your way of protecting private content.

The checklist

Before launch

  1. Keep staging out of search deliberately, and write down the step that lifts the block at launch.
  2. List the URLs you want indexed and make sure each returns a 200 status and is linked from another page.
  3. Generate or write a sitemap with canonical URLs only, no redirects, no pages you have marked noindex.
  4. Review robots.txt line by line. Is there any Disallow: / that should not be there?

On launch day

  1. Remove staging blocks: noindex tags, password protection used only for staging, and robots.txt rules.
  2. Open /robots.txt and /sitemap.xml on the live domain and read them.
  3. Reference the sitemap in robots.txt if your platform does not do it, and avoid duplicating the entry.
  4. Submit the sitemap in Search Console and check the report for errors.

After launch

  1. Page indexing report: are important pages indexed? Google’s help notes that “not indexed” is not necessarily bad.
  2. Compare the number of URLs in the sitemap with what you expect.
  3. Re-check after every redesign or platform change.

Mistakes that cost the most

Mistake What happens Fix
Disallow: / left from staging Crawlers are told not to crawl the whole site Remove the rule and re-test
Noindex left on templates Pages drop out or never enter the index Remove from the live template
Blocking a page in robots.txt to hide it It can still be indexed; crawlers cannot see its noindex Use noindex or remove the page
Sitemap full of redirected or noindex URLs Mixed signals, wasted crawling List only canonical, indexable URLs
Sitemap not updated after a redesign Old URLs listed Regenerate and resubmit
Two conflicting sitemaps in robots.txt Confusion about which is current Keep one source of truth

Google lists noindex or robots.txt blocks, incorrect redirects and sitemaps that were not updated among the common problems after site moves. Our guide on redesigning without losing SEO and the first 90 days after a relaunch show where these checks fit.

See also the reference table in which AI crawlers to allow.

AI crawlers

If you want to allow or block specific AI crawlers, the rules go in robots.txt, and each provider documents its own bots. OpenAI, for example, documents separate crawlers for search, training and user-triggered actions, each controlled independently. See why your business isn’t showing up in ChatGPT.

Next steps

If you want a technical check of your sitemap and robots.txt, see our SEO + AEO service and contact us.

Sources

If you run several languages or regions, read multilingual and multi-region websites for the hreflang sitemap method.

FAQ

Frequently asked questions

Do I need an XML sitemap?

Not always. Google says a sitemap helps search engines discover URLs but does not guarantee discovery, that properly linked pages are usually found, and that small sites (about 500 pages or fewer) often do not need one. New sites with few external links and large sites are cases where it can help.

What is robots.txt for?

Google says it is used mainly to avoid overloading your site with requests and is not a mechanism for keeping a page out of Google. A page disallowed in robots.txt can still be indexed if other sites link to it.

How do I keep a page out of search?

Use a noindex directive or remove the page, not robots.txt. Blocking a page in robots.txt stops crawlers from reading its noindex tag and does not reliably keep it out of the index.

What is the most common robots.txt mistake?

Leaving a block in place from a staging site after launch, or a rule that blocks the whole site. Google lists noindex and robots.txt blocks left over from a migration among the common problems after site moves.

Should my sitemap include every page?

It should list the canonical URLs you want indexed. Leaving out pages you want excluded and keeping the file current matter more than completeness for its own sake.

Keep reading

Cookie settings

Choose which cookies we can use. You can change this at any time from “Cookie settings” in the footer.

Strictly necessary

Always on

Needed for the site to work and to remember your cookie choice. They do not track you.

Help us measure visits, traffic sources (including AI assistants) and how pages are used: Google Analytics 4, Microsoft Clarity and Searchable Analytics. See the cookie policy for details.