Platinum.ai
← Guides

Platinum.ai · 5 min read

How to Add llms.txt to Your Shopify Store

Shopify does not expose server root uploads. Use Shopify Files plus a URL redirect so /llms.txt resolves for bots, then verify with curl or your browser.

What you'll learn

  • Upload llms.txt to Content, Files, then copy the CDN URL.
  • Create a redirect from /llms.txt to that URL in Online Store, Navigation, URL Redirects.
  • Expect a 301: most agents follow it; update the redirect when you replace the file.

Shopify hosts your store for you, so you cannot SSH into the web root like on a VPS. The usual pattern is to upload the file to Shopify’s file CDN, then map your clean path /llms.txt to that file with a redirect.

Step 1: Upload the file

  1. In Shopify Admin go to Content, Files.
  2. Upload your llms.txt file.
  3. Click the link icon and copy the full CDN URL (it will be long and include cdn.shopify.com).

Step 2: Create the redirect

  1. Go to Online Store, Navigation, URL Redirects.
  2. Create URL redirect.
  3. Redirect from: /llms.txt
  4. Redirect to: paste the CDN URL from step 1.
  5. Save.

Step 3: Verify

Visit https://your-store.com/llms.txt. The browser should follow the redirect and show plain text. You can also run curl -I to confirm a 301 and then curl without -I to read the body.

What this means technically

Shopify issues a permanent redirect. That is acceptable for discovery: modern crawlers follow 301s. The ideal is still a direct 200 at root, but on standard Shopify plans this pattern is the practical approach.

Updating the file later

  1. Edit llms.txt locally and upload a new copy to Content, Files.
  2. Copy the new CDN URL if Shopify changed it.
  3. Edit the URL redirect and point Redirect to at the new URL.

Related

For hosts that allow root files, see our general upload guide. For Shopify-specific commerce facts, keep product and policy pages clear in HTML as well so models have more than one signal.