Why it matters
robots.txt is the first file a crawler asks for. One wrong line can hide an entire site from Google — we see "Disallow: /" left over from a site launch more often than you’d think.
It is also where you point crawlers at your sitemap so new pages get found quickly.
How to fix it
- Copy the file below.
- Save it as robots.txt at the root of your site, so it loads at yoursite.com/robots.txt.
- Most builders manage this file for you; if yours does, just make sure nothing important is disallowed.
The code
This is the fix our audit generated for a sample restaurant. Run the audit on your own site and the fix pack fills in your name, address, phone and hours for you. Anything in CAPITALS is a value we couldn’t find — fill it in, never guess.