robots.txt "Disallow: /" shipped to production: what happens and what to do

A staging robots.txt usually looks like this:

User-agent: *
Disallow: /

On production it tells every compliant crawler to fetch nothing. Google can still show already-known URLs for a while, without a description, but it stops crawling, so changes and new pages go unseen. Over time, rankings and traffic slide.

Fix it

  1. Deploy the production robots.txt, or remove the blanket Disallow: /.
  2. In Search Console, check the robots.txt report so Google picks up the new file sooner.
  3. Request indexing for the key URLs and resubmit the sitemap.

Stop it happening again

No command line handy? Check one URL with the online indexability checker.