Robots.txt mistakes that hide the wrong pages
Robots.txt blocks crawling, not indexing
This is the mistake underneath most of the other mistakes, so it goes first. A Disallow line in robots.txt tells a well-behaved crawler not to fetch a URL. It does not tell search engines to leave that URL out of the index. Those are two different systems, and robots.txt only controls one of them.
If a page is disallowed but something else on the web links to it, a search engine can still list that URL in results. It just can’t read the page to generate a proper title or description, so you get a bare URL with a line like “no information is available for this page.” We’ve seen this on our own sites after a migration: pages we thought were hidden were still showing up, just looking broken instead of absent. Blocking a URL doesn’t erase it. It just makes the search engine work from secondhand signals instead of the page itself.
If the goal is actually keeping something out of the index, robots.txt is the wrong tool. That’s what noindex is for, either as a meta tag in the page head or an X-Robots-Tag HTTP header. Which leads to the mistake that costs people the most traffic.
Disallow and noindex fighting each other
We’ve done this one ourselves on a client site years ago, and it’s a common pattern: someone adds noindex to a set of pages to get them out of the index, and separately, someone else (or the same person, months later) adds a Disallow rule for the same path to “clean up crawl budget.” Now the crawler can’t reach the page at all, which means it can never see the noindex tag sitting in the HTML. The tag becomes invisible.
If the page was already indexed before the block went up, it can stay indexed indefinitely, because the search engine has no way to revisit it and learn it should be dropped. You end up watching a page sit in Search Console under something like “indexed, though blocked by robots.txt,” which is the tool telling you exactly what went wrong: it knows the URL exists, it can’t crawl it, and it has no fresh instruction to act on.
The fix is boring but it’s the actual fix: let the crawler reach the page so it can read the noindex tag, wait for that to take effect, and only block the path in robots.txt afterward if you still want to stop crawling it. Order matters here. Do it backwards and you can be stuck for a long time with pages you don’t want, that you also can’t get rid of through the normal channel.
Wildcards that catch more than you meant
Robots.txt supports * as a wildcard and $ to anchor the end of a path, and both are easy to misuse because the syntax looks simple right up until it isn’t. A rule like Disallow: /search doesn’t just block your internal search results page at /search. It blocks anything that starts with those characters, including /search-tips/, /searching-guide/, or a /research/ section if the pattern is loose enough. We’ve caught this exact kind of overlap on our own sites during a robots.txt cleanup, where a rule written for one folder years earlier was quietly also matching a newer folder nobody thought to check against it.
The safe habit is to write the trailing slash when you mean a folder, /search/ instead of /search, and to actually test the pattern against your full URL list before pushing it live rather than eyeballing it. A rule that looks obviously correct in isolation can still collide with a path structure you added eighteen months later.
The staging site disallow that never got removed
This is the single most common robots.txt disaster and it has nothing to do with clever syntax. Staging and development environments almost always ship with Disallow: / at the top of robots.txt, blocking the entire site from being crawled, because you don’t want a half-built copy showing up in search results next to the real one. That’s correct on staging.
The problem is what happens during launch or migration. Someone copies the staging robots.txt to production, or a deploy script pushes the same file to both environments, and the blanket disallow goes live on the real site. Depending on how attentive anyone is, this can sit there for a while before someone notices organic traffic has gone quiet. We’ve had this happen on a site during a platform migration, where the new robots.txt file was correct in the repo but the wrong version got deployed, and nobody thought to check it because the homepage still loaded fine in a browser. A blocked robots.txt doesn’t break the site visually. It just tells crawlers to stop visiting, which is invisible until you’re specifically looking for it.
The habit that actually prevents this is checking robots.txt as a named step in any migration or redesign checklist, not as an afterthought you get to if you remember. It takes ten seconds to open the live file and confirm it isn’t blocking everything.
Blocking the assets a page needs to render
Search engines render pages to understand them, which means they fetch the CSS and JavaScript the page depends on, not just the HTML. Some older robots.txt files, especially ones set up years ago on WordPress, block entire folders like /wp-includes/ or theme and plugin asset paths as a matter of habit, sometimes copied from a template that was written before rendering mattered as much as it does now.
When a crawler can’t fetch the stylesheet or the script that builds part of the layout, it can end up seeing a page that looks broken or incomplete compared to what a visitor sees in a browser. That mismatch matters more for pages where the content is assembled or revealed through JavaScript, less for a plain server-rendered article. Either way, there’s no upside to blocking your own render-critical assets. If you inherited a robots.txt file from a theme, a migration, or a developer who’s no longer around, it’s worth reading it line by line rather than assuming it’s still fit for how the site is built today.
One file per host, not per site
Robots.txt is checked per protocol and per subdomain. https://example.com/robots.txt and http://example.com/robots.txt are technically two different files as far as the spec is concerned, and shop.example.com needs its own robots.txt separate from www.example.com. If your site runs on multiple subdomains and you only ever edit one robots.txt file, thinking it covers everything, the others are either using a default that lets everything through or, worse, inheriting an old block from before a subdomain was repointed. We manage several sites with separate subdomains for blog and store sections, and each one has needed its own file checked independently. Assuming one file governs the whole domain is an easy mistake to make and an easy one to miss, because nothing errors out. It just quietly does the wrong thing on the subdomain nobody checked.
Testing it before you trust it
None of this needs to be guesswork. Search Console has a robots.txt report that shows the live file Google is reading and flags syntax problems, and the URL inspection tool will tell you directly whether a specific URL is blocked and by which rule. Before pushing a robots.txt change live, it’s worth running your actual important URLs, the pages that make you money, through that check rather than assuming a new rule only affects what you intended.
Robots.txt is a small file that’s easy to treat as a formality, copied once during setup and never opened again. The mistakes above aren’t exotic edge cases. They’re what happens when a file that controls crawler access gets the same level of attention as a footer link, on a site where a lot else depends on it being right.
If you want more of this kind of unglamorous technical SEO, written from actually running the sites rather than theorizing about them, come see what else we’ve covered on the home page.