webzod
account

Fix the syntax of robots.txt on Shopify

hygiene.robots.invalid · effort: minutes

Why it matters

A robots.txt that is really an html page, has rules before any User-agent line, or misspells a directive is partly or wholly ignored by crawlers. Rules you meant to apply then do nothing.

The fix

  1. Shopify builds robots.txt from the robots.txt.liquid template. If you created one, open it under Online Store, Themes, Edit code, and fix or delete it to return to Shopify's default.
  2. Shopify does not support help with this template; test the result at https://example.com/robots.txt.

The examples use example.com. Replace it with your own domain.

Read the documentation (opens in a new tab)

Scan your domain to see whether this applies to you.