webzod
account

Shrink the robots.txt file on WordPress

hygiene.robots.too_large · effort: about an hour

Why it matters

Google reads only the first 500 KiB of robots.txt and ignores the rest, so rules at the end may never apply. Very long files are also hard to maintain.

The fix

  1. Open the robots.txt editor of your SEO plugin, or the physical robots.txt in the web root, and remove stale rules left by old plugins.
  2. Prefer noindex settings in the SEO plugin for individual pages over long Disallow lists.

Read the documentation (opens in a new tab)

Scan your domain to see whether this applies to you.