Guide

Adding llms.txt to a Squarespace site

Squarespace won't let you drop a file at the site root, but it does let you upload one and redirect /llms.txt to it with a URL Mapping. The result is an llms.txt crawlers can reach.

1. Write and upload the file

Create your llms.txt (a title, a one-line summary, your key pages under H2 headings). Upload it through Squarespace's file/asset manager — for example via any page's link editor, which stores it at a CDN path and gives you that URL.

2. Redirect /llms.txt to it with a URL Mapping

Go to Settings → Developer Tools → URL Mappings and add a line that 301-redirects the root path to your uploaded file:

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

Replace /s/llms.txt with the actual asset URL Squarespace gave you, then Save. A crawler requesting /llms.txt now follows the redirect to your file.

3. Help crawlers find it

Add a link to /llms.txt in your footer, and — if you can inject head code — a <link rel="alternate" type="text/plain" href="/llms.txt">. This makes the file discoverable from your pages.

4. Validate

Paste your domain into the validator. It follows the redirect, checks the structure, and confirms every linked URL resolves — so you know agents get a clean file.

Keep reading

Validate your llms.txt →