The short answer

Shopify provides a default robots.txt. Change it only for a specific crawl problem, preserve the existing rules and check the live output.

What to do first

Record the current file and the exact URL pattern you want to affect before editing the theme.

Shopify supplies a robots.txt file for your store, and most stores do not need to change it. If you have a specific crawling problem, make a narrow change to the theme’s robots.txt.liquid template and check the resulting live file carefully.

For example, if you are investigating a filter URL such as /collections/shirts?filter=linen, record it alongside the unfiltered /collections/shirts page that should remain accessible. Ask a developer to check the actual URL pattern and existing rules before proposing a change; do not copy a generic disallow rule.

Shopify treats editing robots.txt.liquid as an unsupported customisation. Shopify Support cannot help with it, and its documentation warns that incorrect use can cause you to lose traffic. If you are not comfortable with Liquid, ask a Shopify Partner or developer.

What does robots.txt actually control?

Robots.txt gives crawlers instructions about which URLs they may request. It is not a password or a way to keep information private. Google can still show a blocked URL in search results if it discovers the address elsewhere, even if it cannot crawl the page content.

That difference matters when you want a page removed from Google. A noindex instruction generally needs the crawler to access the page and see it. Blocking the same URL in robots.txt can prevent that discovery. Start with the indexing diagnosis guide if the problem is an unwanted or missing search result.

When should you leave the default alone?

Leave the file alone if you cannot name the URL pattern, the crawler and the reason for changing access. Shopify’s default rules already cover parts of a store that do not need ordinary crawling. Removing rules without understanding them can expose URLs you did not intend to change, while a broad new disallow can prevent access to useful pages.

A filtered collection is a common reason to investigate. First look at actual filter and sort URLs, how they are linked and what you want Google to find. The filtered URLs guide and faceted navigation guide explain the distinction between useful collection pages and variations.

How do you prepare a safe change?

Open https://your-domain/robots.txt using your own domain and save a copy of what it currently returns. Record the exact pattern you want to affect, a URL that should match it and one that should remain accessible. Check whether an existing custom template or app is already making changes. If you do not understand the existing rules, ask a Shopify Partner or developer to review them before editing.

In Shopify, go to Online Store > Themes, open the theme actions menu and choose Edit code. Shopify’s editing robots.txt.liquid instructions describe creating the template if it does not already exist and modifying rule groups. Follow the current instructions for the specific rule you need. Preserve the default groups and any legitimate custom rules rather than replacing the file with a short generic example.

Save a copy of the original template and your intended change outside the editor. Theme code changes deserve the same care as other changes to your storefront. If you are unfamiliar with Liquid, stop and get help rather than guessing at the syntax.

How do you check and undo the change?

After saving, open the live /robots.txt again. Compare it with the saved version, checking both your intended rule and the existing groups. Test representative allowed and disallowed URLs with Google’s robots.txt testing facilities where available. A successful save alone does not establish that the intended crawler sees the rule or that an already indexed URL has disappeared.

If the output is wrong, restore the saved template or follow Shopify’s documented process to remove the custom template and return to the default. Keep a copy of customisations first. Recheck the live file after restoring it. For a wider technical review, use the technical SEO checklist.

Written from Shopify Help Center’s Editing robots.txt.liquid and Google Search Central’s robots.txt introduction, last reviewed 18 November 2026. Confirm your theme, existing rules and testing options in your own account.

Quick answer

Shopify SEO becomes operational when the constraint is clear, the right page type is fixed, the output is tested and the commercial impact is reported.

What you will do

  • Prioritise technical SEO work by page type and business value.
  • Fix crawl, indexation, metadata, template, image and internal-link problems in the right order.
  • Decide when a tool is needed and when native Shopify controls are enough.

What to check first

  • Shopify admin for search listings, redirects, products, collections and theme settings.
  • Google Search Console for indexing, queries and landing-page movement.
  • GA4 or Shopify reports for commercial impact.
  • Research tools for keyword, competitor and audit processes.
  • TinyIMG where image handling is the repeated constraint.

Work through it in this order

  1. Choose the page type being fixed: collection, product, blog, page, filter, vendor or migration URL.
  2. Check crawlability, indexability, canonical, title, H1, internal links, schema and page speed.
  3. Compare Search Console queries with the page intent.
  4. Fix the template or content pattern before editing dozens of individual pages.
  5. Retest the page in a crawler, browser, structured data validator and Search Console where relevant.
  6. Record the change date, owner, expected impact and next review date.

Real-world notes

  • Page architecture and template fixes can address recurring SEO issues; assess the specific problem before choosing an app.
  • Assess collection and product pages against search intent, product evidence and commercial priorities.
  • Assess technical fixes against the affected pages, user needs and commercial priorities before adding them to the backlog.

Final checks

  • Page type selected.
  • Primary query intent confirmed.
  • Canonical and indexability checked.
  • Title, H1 and meta reviewed.
  • Internal links updated.
  • Schema output checked.
  • Image weight reviewed.
  • Change logged for reporting.

Watch-outs

  • Do not index every filter combination. Create clean collections for valuable facets instead.
  • Do not change handles on ranking pages unless the redirect and internal-link update are ready.
  • Do not trust app-generated schema until you inspect the final page output.
Next action

Use the Shopify SEO Audit Checklist, then move into the roadmap, URL structure or collection guide for the page type in front of you.

Field questions

Does robots.txt remove a page from Google?

No. A blocked URL can still be indexed, so use an accessible noindex instruction when removal from Google is the goal.

Can I restore the default file?

Shopify explains how to remove the custom template and return to its default. Save a copy of your custom rules first.