The mistake that makes a site vanish
A staging setting shipped to production can hide your whole site from Google within days. Two causes are common: a robots.txt that blocks every crawler, and a noindex directive left on the page.
What to look for
robots.txtblocking everything:Disallow: /tells every crawler to stay away. Arobots.txtthat answers with a server error is read by Google as "disallow everything" too.noindex: in a<meta name="robots">tag or anX-Robots-Tagheader.- Soft 404s. A missing page that answers
200instead of404gets error pages indexed as duplicate content.
Fix it
- If
robots.txtreturns a server error, serve a valid file, even an empty one, with a200status. - If it blocks everything, replace
Disallow: /with the paths you really want hidden, or remove the rule. - Remove
noindexfrom the page template or the server configuration. In WordPress, untick Discourage search engines from indexing this site under Settings, Reading. - Make your application or catch-all route return a real
404for unknown pages. - Request indexing again in Google Search Console to speed up recovery.
Catch it before Google does
The SEO guard check looks at these settings once a day and fails when robots.txt blocks everything or returns a server error, or when the page has noindex. It warns about soft 404s. Pair it with a check after every deploy, because this mistake almost always arrives with one.