Skip to product information
1 of 1
Published:2023.11.02

A setting example to prevent pages that are "blocked by robots.txt but indexed" from appearing in search results on Shopify

A setting example to prevent pages that are "blocked by robots.txt but indexed" from appearing in search results on Shopify

Applications

  • Site map management and editing

How to implement

  • LIQUID
View full details

By default, Shopify's policy, cart, account, and other pages are excluded from search engine crawling, but depending on the link structure within your store, they may be indexed. This is how to set up the pages so that they do not appear in search results.


An example of how to prevent pages that are "blocked by robots.txt but indexed" from appearing in search results


[Settings Step 1] Edit theme.liquid and add " " tag


[Settings] [Settings Step 2] Create a new "robots.txt.liquid" template and edit it so that the target page is not applied to "Disallow Targets"


Related Post