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
- In Shopify Admin go to Content, Files.
- Upload your llms.txt file.
- Click the link icon and copy the full CDN URL (it will be long and include cdn.shopify.com).
Step 2: Create the redirect
- Go to Online Store, Navigation, URL Redirects.
- Create URL redirect.
- Redirect from: /llms.txt
- Redirect to: paste the CDN URL from step 1.
- 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
- Edit llms.txt locally and upload a new copy to Content, Files.
- Copy the new CDN URL if Shopify changed it.
- 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.