How to Add LLMs.txt to Shopify
Adding llms.txt to Shopify takes one extra move compared with a self-hosted site: you cannot drop a file at the domain root, because every file you upload lives on the Shopify CDN. This guide shows the workaround — upload the file, then redirect /llms.txt to it — and how to keep it updated without breaking the link.
Published: [FILL IN] · Last modified: [FILL IN]
Why Shopify is different
On most hosts you simply place a text file in the web root and it appears at /llms.txt. Shopify does not work that way. The platform does not expose the domain root as a writable folder, and any file you add through the admin is stored on the Shopify CDN at its own address, not at https://yourdomain.com/llms.txt.
The fix is a URL redirect: publish the file wherever Shopify puts it, then point /llms.txt at that address so AI tools find it at the expected root path. As with any site, llms.txt is a community proposal rather than a W3C or IETF standard, and it is not a Google ranking factor — this is a convenience for AI readers, not a ranking trick.
The steps at a glance
Here is the whole process before we take each part in turn.
| Step | Where it happens |
|---|---|
| Generate the file | This site, in your browser — free, no account |
| Upload the file | Shopify admin: Content → Files |
| Create the redirect | Shopify admin: Online Store → Navigation → URL Redirects [FILL IN: exact path in your admin] |
| Verify it | Visit https://yourdomain.com/llms.txt |
Admin menus are reorganised from time to time. If a label below does not match what you see, look for the closest equivalent, or ask Shopify support — treat any exact wording here as a guide rather than a guarantee.
Step 1: Generate your llms.txt file
Use the LLMs.txt Generator to build the file. It runs entirely in your browser and needs no account, and it can assemble a draft from your store URL, your sitemap or a pasted list of links. Trim the result down to the pages that matter — key collections, top products, your About and policy pages — rather than listing everything.
Step 2: Upload the file to Content → Files
In the Shopify admin, open Content and then Files, and upload your llms.txt. Shopify stores the upload and gives it a public CDN address. Copy that full URL — you need it for the redirect in the next step.
Note the filename stays lowercase llms.txt, but its CDN URL will be a long address on Shopify's file host rather than /llms.txt. That is expected.
Step 3: Create a URL redirect from /llms.txt
Now make the friendly root path point at the CDN file. In the Shopify admin, look for URL Redirects — in current admins it sits under Online Store then Navigation, while some stores find the same screen under Online Store → Preferences. The exact path can differ between admin versions, so confirm it in your own store [FILL IN]. Add a redirect with:
- Redirect from:
/llms.txt - Redirect to: the full CDN URL of the file you uploaded
Save it, then confirm the exact field labels against what your admin shows — if the wording differs, use the closest match rather than assuming a specific name.
Step 4: Verify it loads
Open https://yourdomain.com/llms.txt in a browser. You should land on the raw Markdown text, or be redirected to the CDN file and see it there. A 404 usually means the redirect was not saved, or it points at a URL that has since changed.
You can also paste the live URL into the LLMs.txt Validator to check that it resolves and that none of its links are broken.
Updating it later
This is the one part of the Shopify setup that trips people up. When you replace the file, Shopify treats the new upload as a new file and gives it a new CDN address — the old link stops serving the updated content. So after every update you need to repoint the redirect at the new URL.
The short checklist: upload the revision under Content → Files, copy its new CDN URL, edit your /llms.txt redirect to use that URL, then re-check the root path. To keep it simple, update the file only when you add or remove important pages.
Apps and themes that can help
Some tools can handle this for you. Yoast SEO for Shopify and a number of theme and app options can serve an llms.txt, in some cases generating it automatically from your store content. That can save the redirect step entirely.
The catch is the same as on any platform: keep only one source. If an app already serves /llms.txt, do not also add your own redirect to a CDN file — the two will conflict and the winning response becomes hard to predict. Feature names and capabilities vary between apps and versions, so check the current app listing before you commit, and confirm by visiting the URL after any change.
Next step: the V2 setup on Shopify
With the basic file in place, the llms.txt V2 on Shopify guide covers the extra pieces V2 adds, such as Markdown versions of your pages, so agents can read clean text instead of your storefront HTML.
Check your file
Generate yours free
Learn more
- What is llms.txt?
- llms.txt V2: what changed
- Format & specification
- How to create llms.txt
- Best practices
- Examples & templates
- Do I need llms.txt?
- llms.txt for SEO
- What is llms-full.txt?
- llms.txt vs llms-full.txt
- llms.txt vs robots.txt
- llms.txt in the news
- LLMs.txt Generator
- LLMs-full.txt Generator
- LLMs.txt Validator
- llms.txt V2 Checker
- Robots.txt Generator
- Robots.txt Tester