Squarespace gives you two small obstacles instead of one big one. First, you cannot place a file at your domain root, and anything you upload ends up under a /s/ address. Second, the redirect that fixes that problem is typed into a plain text box, and its format is unforgiving. Get one space wrong and Squarespace quietly ignores the whole line. The good news is that once those two details are right, the setup is short, needs no code, and works.

Platform screens change over time. If a menu name in this guide does not match what you see, check the vendor docs linked in Sources for the current path.

An llms.txt file is a short briefing for AI tools, kept at your domain followed by /llms.txt. It opens with your business name and a brief summary, then lists your key pages with a short note on each. AI assistants use it to describe your business from your best pages, instead of guessing from whatever they find first.

Check the starting point

Type your domain followed by /llms.txt into a browser. On Squarespace, a 404 page at this stage is normal. It simply means no file and no redirect exist yet. That blank starting point is expected, not a sign that something is broken.

Write the file and upload it

Draft your file as plain Markdown. It should start with your business name, follow with a one paragraph summary, then group your links under headings like Shop, Guides, and Policies, each with a one line description. Here is a fictional candle business example, to show the layout:

code
# Juniper Candle Co.
> Juniper Candle Co. pours small batch scented candles in a home studio, selling online and at seasonal markets, with refill pouches for returning customers.
## Shop
- [Signature candles](https://examplecandles.com/shop/signature): Core scents in three sizes, with burn times listed.
- [Seasonal candles](https://examplecandles.com/shop/seasonal): Limited scents that rotate four times a year.
- [Refills](https://examplecandles.com/shop/refills): Refill pouches for every signature scent.
## Guides
- [Candle care](https://examplecandles.com/guides/candle-care): How to trim wicks and get an even burn.
- [Scent guide](https://examplecandles.com/guides/scent-guide): How each scent family smells and where it suits a room.
## Policies
- [Shipping and returns](https://examplecandles.com/pages/shipping-returns): Flat rate shipping and exchanges on unburned candles.
## Optional
- [Studio notes](https://examplecandles.com/blog/studio-notes): Notes on new scents and market dates.

Use your own business and your own pages. This example only shows the structure.

Upload the file through the file upload in the content editor. After uploading, confirm it actually serves at your domain followed by /s/llms.txt, and that it shows as text in the browser. If the browser offers it as a download instead of displaying it, note that detail for the debugging step below, because the address in your redirect has to match the real uploaded address exactly.

Add the redirect, character by character

This is the fussy step. On a version 7.1 site, open Settings, then Developer Tools, then URL Mappings. On a version 7.0 site, the same box sits under Settings, then Advanced, then URL Mappings. Add one line, on its own line, in this exact form:

code
/llms.txt -> /s/llms.txt 301

Read that line closely before you save. The source path starts with a slash. Then there is a single space, an arrow made of a hyphen and a greater than sign, another single space, the destination path, a single space, and the status code 301 at the end. Click Save.

Now type your domain followed by /llms.txt into a browser again. Your file text should appear. If you still get a 404, the mapping line is the first suspect. Reopen it and compare it character by character with the line above. Extra spaces, a missing slash, or a wrong destination path are the usual culprits, and the failure gives you no error message to help. It just silently does nothing.

Two plan and hosting notes

URL Mappings is available on Business and Commerce plans. If you are on a Personal plan, published guides on this workaround report that you will need to upgrade before the mapping box appears. Check your plan before you plan around this route, so you are not surprised mid setup.

You also have an off platform option. The same mapping can point at a file hosted elsewhere, and the common choice is a public GitHub Gist raw address. The advantage is maintenance: when the file changes, you update the Gist instead of uploading a fresh file to Squarespace and rechecking the address. The mapping itself stays the same.

A debugging story that repeats

A typical Squarespace round goes like this. A candle shop uploads the file, adds the mapping, and opens /llms.txt, only to get a download prompt or a 404. The upload itself was fine. The problem is that the file landed under a slightly different /s/ address than the one typed into the mapping, so the mapping points at nothing. Fixing the mapping line to match the real file address makes the file render. On Squarespace, the mechanics are two lines long, and the debugging almost always lives inside those two lines.

Crawler permissions are a separate matter. They live in robots.txt, not in this file, and they are worth checking in the same session, but do not try to set them from inside llms.txt.

Frequently Asked Questions

Why do I need a redirect at all on Squarespace?

Because uploaded files live under a /s/ address, not at your domain root. The mapping is what makes your domain followed by /llms.txt reach the uploaded file.

I saved the mapping and still get a 404. What is most likely wrong?

The format of the line. Check the leading slash, the single spaces around the arrow, and the 301 at the end, and confirm the destination matches the real uploaded file address exactly.

Does my Squarespace plan matter here?

Yes. URL Mappings is available on Business and Commerce plans. On a Personal plan, published guides on this workaround report that an upgrade is needed before the mapping box appears.

Can I host the file somewhere else instead of uploading it?

Yes. Point the same mapping at an external address, such as a public GitHub Gist raw address, and update the Gist when the file changes instead of re-uploading.

Verified Sources & Technical Documentation

links marked specific point to the page that supports the claim in this guide. Links marked general docs point to the vendor's general docs section for that topic, not to a page that proves every step. Check the vendor docs for the current path before relying on a menu name or click path in this guide.