Robots.txt Mistakes: Root Placement, Paths and Staging Rules
Review crawler policy mistakes involving file location, path case, staging block rules, sitemap directives and rendering assets.

A short robots file can affect a large part of a site. The most useful review starts with deployment scope: which host serves the file, which path rules it contains, and whether the version you inspected is the version crawlers receive. Generate a draft, then verify the live response before treating the policy as complete.
Check the host and root location
Publish the file at the host’s root robots.txt path. A file inside an application subdirectory is not a general replacement for the root crawler policy. Paths are case-sensitive, so a rule copied from a differently cased route can miss its target. Use root-relative paths and an absolute URL for the sitemap directive. A sitemap reference helps discovery but does not override a disallowed path.
Keep staging policies out of production
A staging file that disallows the root can be copied during a release. Include robots review in the deployment checklist and verify the actual public host after switching traffic. Also check whether CSS, JavaScript or image paths needed to render public pages were accidentally covered by broad rules. A crawler needs the relevant resources to interpret the page as intended.
Inspect policy rather than adding unsupported directives
Crawler implementations differ, and arbitrary custom directives do not become effective simply because they appear in a text file. Our generator writes a single conventional user-agent group and an optional sitemap URL. It rejects malformed paths instead of treating them as comments or additional lines. It does not certify the entire crawl policy; test representative allowed and disallowed routes and review the crawler’s own documented matching rules.
Worked example
User-agent: *
Disallow: /admin/
Disallow: /preview/
Sitemap: https://example.com/sitemap.xmlDoes a sitemap directive make all listed URLs crawlable?
No. Sitemap discovery and crawl-access rules are separate. Resolve disallowed canonical pages intentionally rather than expecting the sitemap to override the policy.


