SEO
Robots.txt misconstructions: how one blocked directive can deindex your entire store
Richard K. · November 7, 2026 · 8 min read

A store owner we'll call hypothetical, because this kind of thing happens quietly enough that nobody writes a case study about it, installs a new SEO app one afternoon. The app asks for permission to manage robots.txt. It means well. It adds a line to optimize crawling. Three weeks later, organic traffic has fallen by half, and nobody has connected the dip to that afternoon. The line it added was Disallow: /collections/, and every product category on the site quietly stopped showing up in Google.
Why robots.txt is so easy to break
Robots.txt is a plain text file sitting at the root of your domain, something like yourstore.com/robots.txt. It tells search engine crawlers which paths they're allowed to request. Shopify, WooCommerce, and BigCommerce all generate a default version automatically, and in most cases it's sensible: it blocks admin paths, cart URLs, and internal search results, while leaving your products and collections open.
The trouble starts when something edits it. On Shopify, merchants can now add a robots.txt.liquid template to override the default, and some SEO or speed apps do this automatically during setup. On WooCommerce, plugins like Yoast or Rank Math manage robots.txt rules, and a misconfigured setting can disallow entire taxonomies. On BigCommerce, robots.txt is editable directly in the control panel, which means a well-intentioned staff member can paste in a rule copied from a tutorial written for a completely different site structure.
None of these changes throw an error. The file saves fine. The store looks fine. Crawlers simply start turning away at the door.
The migration trap
Robots.txt problems cluster around two moments: app installs and platform migrations, and migrations are the more dangerous of the two because they often involve a staging environment.
During a replatforming project, it's standard practice to block search engines from indexing the staging site so Google doesn't crawl duplicate content while the new store is being built. The staging robots.txt typically contains Disallow: /, which blocks everything. The mistake happens at launch, when the team copies the staging site's files to production, including that same blanket disallow rule, and forgets to revert it. The store goes live, looks complete, and is invisible to search engines from day one.
This is closely related to the problem covered in staging sites indexed by Google, which is the mirror image: instead of a staging site leaking into Google's index, a production site inherits staging's crawl restrictions. Both come from the same root cause, treating robots.txt as a one-time setup task instead of something to verify at every deployment.
Blocked by robots.txt vs. deindexed: what's actually happening
These two phrases get used interchangeably, but they describe different stages of the same failure.
When Google's crawler requests a URL and finds it disallowed, the page becomes blocked by robots.txt. If that page was already indexed, Google doesn't remove it immediately. It keeps the last known version in the index for a while, sometimes showing a search result with no description, because Google can no longer read the page to generate one. This is often the first visible symptom: a Google search for your own product title shows a result with "No information is available for this page."
If the block persists, Google eventually treats the page as unreachable and drops it. This is deindexing. For an ecommerce catalog, it tends to happen unevenly, collection pages first, since they're crawled less frequently than the homepage, with product pages following over the following weeks. By the time the decline shows up clearly in analytics, the technical cause is often three or four weeks old.
This lag is exactly why the mistake is so costly. There's no moment of visible breakage. Traffic erodes gradually, and it's easy to blame seasonality, a Google algorithm update, or increased competition before anyone checks the robots.txt file itself.
Robots.txt doesn't fail loudly. It fails by omission, and omission takes weeks to notice without someone looking.
How to check your robots.txt right now
This takes about five minutes and is worth doing on a recurring basis, not just once.
First, visit yourstore.com/robots.txt directly in a browser. Read every Disallow line. On a healthy Shopify store, you should not see /collections/ or /products/ blocked. On WooCommerce or BigCommerce, the same applies, plus check that your sitemap reference at the bottom of the file still points to a working sitemap URL (a related problem is covered in sitemap hygiene).
Second, open Google Search Console and check the robots.txt report under Settings. It shows the last time Google fetched the file and flags if it's blocking important content. Third, use the URL Inspection tool on a handful of your actual product and collection URLs. If the result says "Blocked by robots.txt" or "Excluded by robots.txt," you've found your answer immediately.
For stores managing multiple regions or languages, it's worth checking that the block isn't isolated to one country subfolder or subdomain, which can mask the problem in aggregate traffic reports while quietly killing a specific market. Faceted navigation setups carry a related risk, where filter URLs multiply and bad rules meant to tame them end up catching real category pages too, a pattern explored in faceted navigation and crawl budget waste.
Building a monitoring routine, not a one-time fix
Fixing a bad robots.txt line is trivial once you know it's there. The actual problem is detection time. Most stores only discover the issue when someone notices a traffic drop in Google Analytics, and by then the pages may already be partially deindexed.
A better routine treats robots.txt like any other critical file: something to check after every app install, every theme change, every migration, and on a recurring schedule regardless of whether anything changed. Some teams build this into their pre-launch checklist alongside other go-live checks, similar to the broader list in 10 monitoring checks every growing store should automate before Black Friday.
This is also the kind of check that's easy to forget precisely because it so rarely changes, which is what makes it dangerous when it does. Cassian™ runs SEO health checks, including robots.txt and sitemap monitoring, as part of its continuous scans, so a change like an accidental Disallow: /collections/ line triggers an alert within the normal monitoring cycle rather than waiting to surface as a traffic graph. The Cassian Score™ reflects SEO health alongside uptime, pricing, and stock issues, giving a single number that drops when something like this happens, instead of a slow bleed nobody notices until it shows up in quarterly numbers.
Frequently asked questions
- How do I know if Google is blocked by my robots.txt file?
- Check the robots.txt report in Google Search Console under Settings, which lists the last time Google fetched the file and flags any rules blocking important pages. You can also use the URL Inspection tool on specific product or collection URLs and look for a result labeled 'Blocked by robots.txt.' Visiting yourstore.com/robots.txt directly and reading the Disallow lines yourself is a quick first check that requires no tools.
- Can a robots.txt error really get my whole Shopify store deindexed?
- Yes, if the disallow rule is broad enough, such as blocking /collections/ or using Disallow: / across the entire site, Google will stop crawling those pages and eventually remove them from its index. Shopify stores are particularly exposed when an app is given permission to edit robots.txt.liquid during setup, since the change happens without a visible confirmation of what was altered. Deindexing doesn't happen instantly, it follows weeks of the pages being blocked and uncrawlable, which is why catching the error early limits the damage.
- What's the difference between a robots.txt block and a noindex tag?
- A robots.txt disallow rule prevents a crawler from requesting the page at all, while a noindex tag lets the crawler visit the page but tells it not to include that page in search results. This distinction matters because a noindex tag on an already-indexed page gets processed relatively quickly, but a robots.txt block can actually delay removal, since Google can't even see the noindex tag if it's not allowed to crawl the page in the first place. For ecommerce stores, an accidental robots.txt block is usually worse because it affects crawl visibility broadly, not just indexing status for one page.
The fix is easy, the detection is the point
Editing a robots.txt file takes thirty seconds once you've found the offending line. The real work is making sure you find it in days, not months. App installs, migrations, and well-meaning SEO plugins will keep touching this file, because that's exactly what it's designed for. The goal isn't to stop editing it. It's to know immediately when an edit goes wrong, before a quiet traffic decline becomes a conversation about why the store vanished from search.