Setup guide

How to add llms.txt to Squarespace

Squarespace doesn't allow root-file uploads. Use a URL mapping + a stripped page, or front the domain with Cloudflare for full header control.

4
Steps
3
Prereqs
2
Gotchas

Before you start

  • Business plan or higher (for URL mappings)
  • Site admin access
  • Optional: Cloudflare account for the most reliable approach
Step-by-step

Install in 4 steps

  1. 1

    Create a page with slug 'llms-txt'

    Use a blank layout. Paste your Markdown into a code block.

  2. 2

    Add a URL mapping

    Settings → Advanced → URL Mappings: '/llms.txt -> /llms-txt 301'.

  3. 3

    Strip the chrome

    Apply a custom CSS rule that hides header/footer for this page (.collection-llms-txt header, .collection-llms-txt footer { display:none }).

  4. 4

    Verify

    Fetch with curl. If Squarespace still wraps it in HTML, route through Cloudflare and rewrite the response.

Troubleshooting

Response is always text/html

Squarespace returns text/html for everything. Front the domain with a Cloudflare Worker that rewrites Content-Type to text/plain.

URL mapping not available

Personal plans don't support URL mappings. Upgrade to Business or set up Cloudflare in front.

Common gotchas

  • Squarespace returns text/html for everything — Cloudflare Workers can rewrite to text/plain
  • Personal plans don't support URL mappings — upgrade or use Cloudflare

Generate your llms.txt in 30 seconds

Use the free OptimAIze generator, then follow the steps above to deploy on Squarespace.

Frequently asked questions

Does Squarespace need both llms.txt and robots.txt?

Yes. robots.txt grants crawler permission; llms.txt curates which pages matter. Together they form the minimum AI-search setup on any Squarespace site.

Will adding llms.txt slow down my site?

No. It's a tiny static text file fetched once and cached aggressively. Page-load impact is effectively zero.

How often should I update llms.txt?

Whenever your canonical content set changes — new docs section, new product line, new pricing page. A monthly review is a sensible cadence for most sites.

Can I see whether AI engines read my llms.txt?

Check your server logs for user agents like GPTBot, ClaudeBot, PerplexityBot, and Google-Extended hitting /llms.txt. Most sites see traffic within days of publishing.

Other platforms