How to Add llms.txt in Squarespace: The Real Workaround (2026)
Squarespace has no native root-file upload, so you can't drop llms.txt at your root. Here's the verified URL Mappings + 301 redirect workaround for 2026.
How to Add llms.txt in Squarespace: The Real Workaround (2026)
Short answer: Squarespace does not let you upload arbitrary files to your domain's root directory, so there is no native way to place a file at yourdomain.com/llms.txt. The working method is to upload your llms.txt content as a hosted file, find the static CDN URL Squarespace assigns it, and then use Squarespace's built-in URL Mappings to create a 301 redirect from /llms.txt to that file. When an AI crawler requests /llms.txt, it follows the redirect and reads your file.
This is a workaround, not a feature. Squarespace has not shipped a root-file uploader, and there is no plugin or app that changes that. Below is the honest, step-by-step process and its limitations.
Why Squarespace Can't Do This Natively
On a self-hosted site, you drop llms.txt (or robots.txt, or ads.txt) into your root directory and you're done. Squarespace is a closed platform: you get no filesystem access to the root, and every file you upload is stored on Squarespace's static CDN under a /s/ path, not at your domain root. The redirect approach below is the community-accepted way around that.
The Workaround, Step by Step
Step 1 — Write your llms.txt content
Create the file on your computer first. A minimal llms.txt is a Markdown-style plain-text file describing your site, your preferred brand name, key pages, and how AI models should reference you. If you need the full spec and a copy-paste template, see the llms.txt setup guide.
Save it as llms.txt locally. Keep it well under Squarespace's 20 MB per-file upload limit — a real llms.txt is a few kilobytes.
Step 2 — Upload the file to Squarespace
Squarespace doesn't surface a generic "upload file" button on the dashboard. The reliable path is through the Link Editor (the same dialog you use when adding a link to a button, navigation item, or text):
- Open any place where you can add a link (for example, a text block).
- In the link dialog, choose the File link type.
- Upload your
llms.txtfile.
Squarespace stores it on its CDN and exposes it at a /s/ URL, such as https://yourdomain.com/s/llms.txt.
Note: That /s/ URL itself behaves as a redirect to the file's true CDN address (on static1.squarespace.com). You generally cannot rename or directly control these static asset URLs — that limitation is exactly why the next step is necessary.
Step 3 — Trace the file's real URL
Because /s/llms.txt redirects onward, you want the actual destination URL the file lives at. Open https://yourdomain.com/s/llms.txt in your browser and either watch where it lands or run it through a redirect-tracing tool to capture the final CDN URL. Copy that final URL.
Step 4 — Create the URL Mapping (301 redirect)
This is the step that makes /llms.txt resolve:
-
Go to Settings → Developer Tools → URL Mappings in your Squarespace dashboard.
-
Add a mapping in this format:
/llms.txt -> https://yourdomain.com/s/llms.txt 301You can point it at the traced final CDN URL from Step 3, or at the stable
/s/llms.txtURL — pointing at/s/llms.txtsurvives better if the underlying CDN path ever changes. -
Save.
Now a request to yourdomain.com/llms.txt returns a 301 redirect to your hosted file, which is what AI crawlers will follow.
Workaround Options Compared
There's no single "right" method — here's how the realistic options stack up.
| Method | Lands at /llms.txt? |
Difficulty | Limitation |
|---|---|---|---|
URL Mappings → /s/ file (301 redirect) |
Yes, via redirect | Medium | Relies on Squarespace honoring the mapping; serves a redirect, not a file at root |
Link directly to /s/llms.txt everywhere |
No | Easy | The file exists but is not at the expected /llms.txt path; weaker discoverability |
| Code Injection (header/footer) | No | Easy | Injects HTML/scripts only — it cannot create a new root URL or serve a plain-text file |
| Move DNS to a host with root access | Yes, truly at root | Hard | Requires leaving or fronting Squarespace; overkill for one file |
Code Injection is worth calling out because people reach for it first: it adds scripts and meta tags to pages, but it cannot publish a file at /llms.txt. Don't waste time there for this task.
How to Verify It Works
Do not assume the redirect is live just because you saved it. Check it directly:
- Browser test: Visit
https://yourdomain.com/llms.txt. You should end up viewing your llms.txt content (possibly after the redirect resolves). - Header check: From a terminal, run
curl -sIL https://yourdomain.com/llms.txtand confirm you see a301status pointing to your file, with the final hop returning200and the file contents. - Content check: Run
curl -sL https://yourdomain.com/llms.txtand confirm the actual text matches what you wrote — not a Squarespace 404 page. - Wait for caching: Mappings and CDN changes can take a short while to propagate. If you get a 404 immediately, re-check after a few minutes before assuming it failed.
Once that's confirmed, the harder question is whether putting llms.txt in place actually changes how AI engines describe you. llms.txt adoption by AI crawlers is still emerging, so treat this as a hygiene step, not a guaranteed ranking lever — and measure the outcome rather than trusting it blindly.
That's where GeoCheckTool comes in. Run your brand or domain through GeoCheckTool to see whether AI answers from engines like ChatGPT, Perplexity, and Google's AI overviews are actually citing you, both before and after you add llms.txt. If your citations don't move, you'll know the file alone isn't the bottleneck — and you can focus on the content and authority signals that are.
FAQ
Does Squarespace support llms.txt natively?
No. As of 2026 Squarespace has no native root-file upload, so you cannot place a file directly at yourdomain.com/llms.txt. The redirect-via-URL-Mappings method in this guide is the practical workaround, not an official feature.
Can I use Code Injection to add llms.txt instead? No. Code Injection only adds HTML, meta tags, or scripts inside your pages. It cannot create a new URL or serve a plain-text file at your root, so it's the wrong tool for llms.txt.
Will a 301 redirect work for AI crawlers, or do they need a real file?
A 301 redirect is the standard, well-supported way to point a path to a file, and reputable crawlers follow redirects. The honest caveat is that AI crawler behavior around llms.txt is still maturing — some may not request the file at all yet — so verify with the curl checks above and don't over-index on a single file.
Is the URL Mappings method reliable long-term?
It works today and is the community-standard approach, but you depend on two things staying stable: Squarespace continuing to honor the mapping, and the underlying /s/ file URL not changing. Pointing the mapping at the /s/llms.txt path (rather than the deep CDN URL) makes it more durable. Re-test periodically.
Verify your AI visibility before and after. Adding llms.txt is a setup step — the real question is whether AI engines cite your brand. Check your current standing with GeoCheckTool, add your llms.txt with the workaround above, and re-check to see if it moved the needle.