Loadingβ¦
Add the file that tells crawlers what they can crawl and where your sitemap lives.
robots.txt guides crawlers β keeping them out of admin, cart and search pages so crawl budget goes to content that matters, and pointing them at your sitemap. Note it controls crawling, not indexing.
Sitemap: line with the absolute URL of your XML sitemap.# https://example.com/robots.txt β 404User-agent: *
Allow: /
Disallow: /cart
Disallow: /admin
Disallow: /*?q=
Sitemap: https://example.com/sitemap.xmlYoast/Rank Math include a robots.txt editor; otherwise drop the file in the site root via FTP.
Add app/robots.ts exporting the rules + sitemap reference.
Run a free audit and get a prioritized fix list with auto-generated code.
Run a free audit