How to generate llms.txt for Webflow
January 16, 2024
9 min read
llms.txt Team
Webflow doesn’t natively let you upload root‑level files like /llms.txt. This guide shows simple, reliable workarounds using the Assets panel and 301 redirects—plus optional Cloudflare mapping. Copy‑paste templates included. If you just need the content, generate llms.txt here.
Why Webflow needs a workaround
- Webflow hosting serves assets via a CDN with hashed URLs, not at the site root.
- To serve /llms.txt at the root, you can 301‑redirect from /llms.txt to the hosted asset URL.
- Alternative: proxy /llms.txt via Cloudflare (or your reverse proxy) to an asset or external file.
Step‑by‑step: Publish llms.txt on Webflow (redirect method)
- Generate llms.txt → /#generator
- Save the file locally as llms.txt
- In Webflow Designer → Assets → Upload the file or a hosted variant
- Project Settings → SEO → 301 Redirects
- Old Path: /llms.txt → Redirect to: public asset URL (301 Permanent)
- Publish your site and test https://yoursite.com/llms.txt
Alternative: Cloudflare Worker to serve text/plain
export default { async fetch(req) { const url = new URL(req.url); if (url.pathname === '/llms.txt') { const origin = 'https://raw.githubusercontent.com/your-org/seo/main/llms.txt'; const r = await fetch(origin, { cf: { cacheTtl: 3600, cacheEverything: true } }); return new Response(await r.text(), { headers: { 'Content-Type': 'text/plain; charset=utf-8', 'Cache-Control': 'public, max-age=3600' } }); } return fetch(req); } };
Templates for Webflow sites
Marketing site
# Acme Studio > Webflow site for design and marketing services. ## Contact - Email: hello@acmestudio.com - Website: https://acmestudio.com ## Pages ### Home URL: https://acmestudio.com/ Services, portfolio, and client stories. ### Services URL: https://acmestudio.com/services Design and development offerings. ### Case Studies URL: https://acmestudio.com/case-studies Selected client outcomes and process. ## Crawling Rules Disallow: /admin Disallow: /member
Validating your setup
- Test /llms.txt locally and after publishing.
- Confirm HTTP 200 or 301→200 with “text/plain”.
- Add quick internal links to the generator so editors can update content:
- Generate a fresh llms.txt → /#generator
Maintenance tips
- Keep your file concise and current.
- Update quarterly or after major changes.
- Keep a changelog of Disallow rules and page list updates.