How to Add llms.txt
to Your Shopify Store
A step-by-step guide for Shopify users to make your AI Website Profile discoverable
Because Shopify is a fully hosted platform, it does not allow you to upload files directly to the server's "root" directory (the main folder where your website lives). This makes adding standard root files like llms.txt slightly tricky compared to a traditional server.
However, you can achieve this effectively using Shopify's File hosting combined with a URL Redirect.
What You Will Learn
- How to upload your llms.txt file to Shopify's CDN
- Setting up a URL redirect to serve it at the root path
- Verification steps to ensure it works correctly
- How to update the file when needed
Step 1: Get Your llms.txt File
First, make sure you have your llms.txt file created by Platinum.ai. If you haven't created one yet, you can generate it through your Platinum.ai dashboard.
Step 2: Upload the File to Shopify
Since you cannot access the server root, you must upload the file to Shopify's Content Delivery Network (CDN).
- Log in to your Shopify Admin.
- Go to Content → Files.
- Click the green Upload files button.
- Select your
llms.txtfile. - Once uploaded, click the Link icon next to the file to copy its URL. It will look something like:
https://cdn.shopify.com/s/files/1/0000/files/llms.txt...Step 3: Create a URL Redirect
Now you need to tell Shopify that when someone (or a bot) visits yourstore.com/llms.txt, they should be sent to that CDN link you just copied.
- Go to Online Store → Navigation.
- Click on URL Redirects (usually located just below the page title "Navigation").
- Click Create URL redirect.
- Fill in the fields as follows:
- Redirect from:
/llms.txt - Redirect to: Paste the long CDN link you copied in Step 2.
Click Save redirect.
Step 4: Verify It Works
To ensure the setup is correct, open a new browser tab and type your domain followed by the filename:
https://yourstore.com/llms.txtWhat should happen:
The browser should immediately redirect (change the URL in the bar) to the cdn.shopify.com address and display the plain text content you wrote.
Important Technical Note
This method creates a 301 Permanent Redirect.
Pros:
- It is the only way to do this on standard Shopify plans
- It is easy to maintain
Cons:
- Strictly speaking, some web crawlers prefer the file to live at the root without a redirect
- However, most modern LLM scrapers and browsers handle 301 redirects perfectly fine for discovery files
Updating the File Later
If you need to change the content of your llms.txt later:
- Edit the file on your computer.
- Upload it to Content → Files again.
- Crucial: Copy the new link (Shopify often adds version numbers to the URL).
- Go back to URL Redirects, find the
/llms.txtentry, and update the "Redirect to" field with the new link.
Related Resources
- General Upload Guide- Complete guide for all platforms
- Best Practices for llms.txt- Learn how to optimize your AI Website Profile