SEO issue explained

robots.txt returns a server error

Your robots.txt address answers with a server error (5xx) or cannot be reached. Google treats that as "do not crawl" until the file works again.

A friendly robot examining a web page with a magnifying glass, surrounded by charts and check marks

What this issue means

ROC SEO warns under check T5 when robots.txt cannot be read, and the robots.txt tester shows the status code.

Why it matters

Google's documentation explains that a robots.txt server error makes Googlebot stop crawling the site, because it cannot know what is allowed. If the error lasts, Google may fall back to an older copy or treat the site as fully allowed after a long time, but crawling can stall in the meantime.

How to fix it

  1. Open /robots.txt in your browser and check the status with the HTTP header checker.
  2. Look for firewall or security rules that block bots from that file, and for server errors in your hosting logs.
  3. If a plugin makes the file, check it works with caching turned off.
  4. Make sure the file returns 200 with plain text, or 404 if you want no rules. Both are fine; 5xx is not.
  5. Use Settings › robots.txt in Google Search Console to see when Google last read it.

Find it on your own site

The free ROC SEO extension checks the page you are on for this and more than 60 other issues, each with a fix, and the site crawler checks up to 1,000 pages for free.

Related issues

Frequently asked questions

Is a 404 for robots.txt a problem?

No. 404 means no rules, and Google crawls normally. Only server errors (5xx) and timeouts stop crawling.

How fast does Google notice a fix?

Google usually rereads robots.txt within a day, and you can ask it to recrawl the file in Search Console.

What about a 403 Forbidden?

Google treats 4xx errors on robots.txt, including 403, as if the file does not exist, so crawling continues.

Get in touch

Questions, ideas or a partnership?

Write to us about anything: a guest post or publishing on our blog, a partnership, an update you would like to see, a problem with the extension, billing or a refund. A person reads every message and replies by email.

Prefer email? Write to support@getrocseo.com.