Monitory
← All guides

Guides

How to avoid hiding your site from Google

Why a leftover noindex or a robots.txt that blocks everything can remove your site from search, and how to catch it after every deploy.

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.txt blocking everything: Disallow: / tells every crawler to stay away. A robots.txt that answers with a server error is read by Google as "disallow everything" too.
  • noindex: in a <meta name="robots"> tag or an X-Robots-Tag header.
  • Soft 404s. A missing page that answers 200 instead of 404 gets error pages indexed as duplicate content.

Fix it

  1. If robots.txt returns a server error, serve a valid file, even an empty one, with a 200 status.
  2. If it blocks everything, replace Disallow: / with the paths you really want hidden, or remove the rule.
  3. Remove noindex from the page template or the server configuration. In WordPress, untick Discourage search engines from indexing this site under Settings, Reading.
  4. Make your application or catch-all route return a real 404 for unknown pages.
  5. 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.

Keep reading