Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello Shopify Community,
I am trying to allow my legal pages (such as `/policies/terms`) to be indexed by customizing the robots.txt.liquid file in my published Shopify theme.
Here is the simplified version of my current file:
User-agent: *
Allow: /policies/
Allow: /checkouts/internal/preloads.js
Disallow: /checkouts/
Disallow: /checkout
Despite these settings, the live robots.txt at https://lalaloom.no/robots.txt still shows:
Disallow: /policies/
Disallow: /*/policies/
So Google continues to block those pages.
I have verified:
- The theme is published
- robots.txt.liquid is in the correct folder (templates/)
- The file saves correctly
I also spoke with Shopify Support who confirmed the file looks correct, but mentioned they could not escalate the issue as it involves code.
Can anyone from the community or staff clarify whether Shopify storefronts respect robots.txt.liquid reliably? Or is this a known limitation?
Thank you!
Ali
https://lalaloom.no
Hi,
Even though you’ve customized your robots.txt.liquid file in your theme, Shopify overrides or appends default disallow rules—especially for /policies/ and other sensitive or legal paths like /checkout/.
This is intentional by Shopify to prevent indexing of potentially sensitive or dynamically generated content that may cause duplicate content issues or legal problems.
It seems like your robots.txt is correct
I tested the robots.txt before to hide my product details pages. It might take time for Search Engines like Google to re-index your site. If you want to speed up, you can try Google Search Console.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025