WebCare.

WordPress problem fix

IS YOUR WORDPRESS robots.txt BLOCKING GOOGLE?

A wrong robots.txt can disappear your site from search overnight. We restore proper rules and audit the cause within hours.

4 hour emergency response You only pay when it is fixed 150+ WordPress sites managed

The short answer

If Search Console says pages are blocked by robots.txt, or your robots.txt suddenly shows Disallow rules you did not write, traffic loss is hours away. Common causes are a security or SEO plugin overwriting the file, a leftover staging Disallow: / line after migration, or a malicious file injected into the site root. The fix is to confirm what is serving the file (physical file vs WordPress virtual robots), restore the right directives, re submit in Search Console, and harden the source so it does not get rewritten.

Is this your situation?

If any of these match, you are on the right page.

Search Console flags pages blocked by robots.txt

Organic traffic dropped after a migration or plugin install

robots.txt shows Disallow: / for the whole site

Rules appear in robots.txt that you never added

What usually causes it

Why is my WordPress robots.txt blocking Google?

Either a physical robots.txt in the site root with a Disallow: / left over from staging, a plugin generating a virtual robots.txt with wrong rules, or a malicious file injected during a hack.

Static file or virtual robots?

If a physical robots.txt exists in the site root, WordPress serves that. If not, WordPress generates one on the fly, and many SEO and security plugins inject rules into that virtual file.

Can this drop my rankings fast?

Yes. Googlebot respects robots.txt almost immediately. A wrong Disallow can cut crawling within a day and rankings within a week if not caught.

How we fix it

The real method, in the order it works.

  1. 1

    Open yoursite.com/robots.txt in a private window to see what Google sees.

  2. 2

    Check the site root over SFTP for a physical robots.txt and remove or correct it.

  3. 3

    Open every SEO and security plugin and check its robots.txt settings.

  4. 4

    Restore correct directives (allow normal crawling, block only admin and search query parameters).

  5. 5

    Submit robots.txt in Search Console and request validation.

Real fix, from our work

How this one actually went down

A client migrated to a new host and traffic collapsed within a week. robots.txt was the cause: a Disallow: / from the staging host had been copied across in the migration archive. I deleted the physical file, let WordPress serve its default virtual robots through Yoast, re submitted in Search Console, and pages were crawled again within 48 hours. Traffic recovered over the following two weeks.

AJ

Written by Ali Yasin Jatoi

Founder of WebCare Studios. Ali has worked with WordPress for more than 10 years, including managing a fleet of 150+ sites with WP-CLI automation for updates, security cleanup, and malware removal. He has hands on experience across major hosts including Cloudways, A2 Hosting, Hostinger, and Bluehost.

Why owners pick WebCare

4 hour emergency response

Site down, hacked, or broken checkout gets a senior engineer within 4 hours. No ticket queues, no bots.

You only pay when it is fixed

Flat quote up front. If we cannot get you back online, you do not pay. Risk sits with us, not you.

Data safe approach

We work on a snapshot first and never touch your live database until the fix is verified safe.

150+ sites managed

We run a fleet of WordPress sites every day. The errors you are seeing are ones we have closed hundreds of times.

Common questions

Should I block wp-admin in robots.txt?+

Most modern WordPress installs do not need to. Yoast and Rank Math handle this automatically. Manual rules often cause more problems than they solve.

Why does Search Console still show blocked after I fix it?+

Google caches robots.txt for around 24 hours. After fixing, request a validation in Search Console and recrawl. The status updates within a day or two.

Could this be a hack?+

Possibly. If you did not create the file and no plugin owns it, treat it as a compromise: scan for malware, rotate credentials, and audit recent file changes.

Send my site for triage in 15 minutes

Two fields. Email and your URL. A senior WordPress engineer reads it within minutes and replies on email and WhatsApp with what is wrong and what we will do next.

Two fields. Senior engineer replies within 15 minutes during business hours.

Related fixes

WhatsApp Get my site fixed