Serve robots.txt at the root of every host and protocol you care about.
- Why
- A robots.txt file only applies to the exact protocol, host and port it is served from. Rules on www.example.com do nothing for shop.example.com or for the http version of the same host.
- Verify
- Request /robots.txt on each hostname and protocol in use, including subdomains served by other platforms.
- Failure mode
- A subdomain on a separate platform has no file, or an old file, and nobody notices because the main host looks correct.
- Sources
- How Google interprets the robots.txt specification; RFC 9309: Robots Exclusion Protocol