Robots.txt rules: how Google reads your file
Google reads robots.txt only from the top-level directory of a site, and each file covers just its own host, protocol and port, so a subdomain needs its own.
What it means for your Maryland business
Robots.txt rules are short lines in a text file at the root of your website that tell crawlers which addresses they may visit. Google follows only a few rule types, reads the file in a particular way, and reacts strongly when the file breaks. That makes it worth checking for any Maryland business whose developer has edited robots.txt, and especially for sites with separate subdomains for a shop, booking system or blog, such as a restaurant, salon, hotel or retailer with an online shop on its own subdomain.
A bed and breakfast in St. Michaels runs its main site and a separate booking site on a subdomain. The owner's developer adds rules to the main robots.txt to block the booking calendar pages, but those rules don't reach the subdomain, which needs its own file. The developer also wrote the rule with a capital letter in the folder name while the real address is lowercase, so it blocks nothing. And a crawl-delay line added years ago does nothing for Google, which doesn't support it.
Most robots.txt problems trace back to four habits: assuming one robots.txt covers every subdomain; mismatched upper and lower case in paths; relying on crawl-delay; and letting the file go missing or error out. If the file returns a not found error, Google treats the site as having no limits. If the server errors out, Google stops crawling for the first 12 hours and may then fall back to the last version it fetched successfully. Remember too that blocking a page here keeps Google from reading it, not necessarily from listing its address in results.
A quick test any owner can do: type your domain followed by /robots.txt in a browser. If it loads cleanly and reads sensibly, ask your developer to confirm each rule is still needed and spelled to match your real page addresses.
In Google's words
“Google supports the following fields (other fields such as crawl-delay aren't supported):”
What Google says
Google reads robots.txt only from the top-level directory of a site, and each file covers just its own host, protocol and port, so a subdomain needs its own. Google supports user-agent, allow, disallow and sitemap fields, does not support crawl-delay, ignores anything past 500 KiB, and treats rule paths as case-sensitive. When the file returns a 4xx error other than 429, Google acts as if no limits exist; when it returns a server error, Google stops crawling for the first 12 hours.
Where to go next
The entries on either side of this one in Getting found by Google.
