Table of contents
- TL;DR
- Contents
- What every platform's file has to contain
- Astro
- Astro path A: a static file in public/
- Astro path B: an endpoint built from your content collections
- Astro path C: Starlight documentation sites
- Three Astro traps
- Docusaurus
- Why the file lands at a URL agents will not ask for
- Docusaurus route 1: the static folder
- Docusaurus route 2: a postBuild hook that reads your real routes
- Docusaurus route 3: an npm plugin
- Choosing which Docusaurus pages to list
- Confirm which Docusaurus URL you shipped
- Framer
- The Framer plan gate comes first
- Upload the file in Site Settings
- Point the Framer links at Markdown twins
- Verify the Framer file landed
- Ghost
- Why Ghost gives you nowhere to put the file
- Add the Ghost route
- Write the Ghost template
- Self-hosted Ghost shortcut
- Read the Ghost response, not the status code
- Hugo
- Hugo route one: static/llms.txt
- Hugo route two: an output format that builds the file
- Two Hugo traps
- Verify the Hugo file
- Next.js
- Next.js path 1: public/llms.txt
- Next.js path 2: a route handler
- Next.js under a static export
- Verify the Next.js file
- Replit
- Replit path A: an Agent app on Autoscale
- Replit path B: a Static Deployment
- The Replit 200 that means nothing
- What Replit's own files show
- Shopify
- What Shopify serves by default
- Write your own Shopify template
- Keeping the Shopify file current
- Shopify traps
- Squarespace
- Turn on the Squarespace LLMS.txt tab
- Squarespace traps
- Webflow
- Webflow steps
- Webflow traps
- Wix
- Why a Wix site has no llms.txt
- Read the generated Wix file
- The first edit stops automatic updates
- Wix opt-out, privacy and NLWeb
- Verify the Wix file
- WordPress
- WordPress route 1: ThinkRank
- WordPress route 2: Yoast SEO
- WordPress route 3: Rank Math
- WordPress route 4: All in One SEO
- WordPress route 5: no plugin
- Three WordPress traps
- Verify the WordPress file
- Confirm any platform's file passes C2
Updated on 23 November 2026. Every platform section was checked on the dates shown inside it. WordPress joined this guide on 23 November 2026, with the llms.txt switch in ThinkRank, Yoast SEO, Rank Math and All in One SEO and the no-plugin route. Squarespace, Webflow and Wix joined on 26 October 2026.
A valid llms.txt is one file at /llms.txt that returns HTTP 200 and contains an H1, at least one ## section and Markdown links. That is the whole of AIScan's C2 check. What changes from platform to platform is not the file but where you are allowed to put it: a folder, a code endpoint, a paid upload panel or a template route. This guide holds the platform-specific steps for twelve platforms in one place, so you can jump to your stack.
TL;DR
- The pass bar is the same everywhere. C2 wants a 200, one H1, one
##section and Markdown links. It does not check the content type. - Astro: drop
public/llms.txt, or buildsrc/pages/llms.txt.tsfrom your content collections. Starlight sites can use thestarlight-llms-txtplugin. - Docusaurus:
static/llms.txtis served under yourbaseUrl. On a GitHub Pages project site that means/project/llms.txt, and the origin root returns 404. - Framer: an upload under Site Settings, Hosting, Files, on the Pro or Enterprise plan only. Use a
.txtextension and the root path. - Ghost: no setting and no file root. Add a
routes.yamltemplate route withcontent_type: text/plain, and judge success by the final URL, not the status code. - Hugo:
static/llms.txttakes thirty seconds and goes stale. A customllmsoutput format withlayouts/home.llms.txtrebuilds the file on everyhugorun. The template name changed in v0.146.0. - Next.js:
public/llms.txt, or a prerenderedapp/llms.txt/route.tswithexport const dynamic = 'force-static'. Underoutput: 'export'that line is required. - Replit: an Agent app belongs in
client/public/llms.txt, then Publish and Republish. The default Express scaffold answers 200 with your homepage for a file that is not there. - Shopify: a Liquid theme already serves a default
/llms.txt. Replace it withtemplates/llms.txt.liquid. Headless storefronts return 404 until you add the route yourself. - Squarespace: version 7.1 only. Paste Markdown into SEO/AI Visibility, SEO Settings, LLMS.txt and save. You cannot upload a file or redirect to one.
- Webflow: Site settings, SEO, LLMs.txt, upload a UTF-8 file under 100 KB, then publish to the custom domain. Staging never serves it, and the
noindexheader is deliberate. - Wix: Wix writes the file for you on an upgraded site with a custom domain and indexing on. Your first edit stops automatic updates until you reset it.
- WordPress: the file comes from your SEO plugin, and the switch is often off. Yoast: Settings > Site features > AI tools > llms.txt. Rank Math: turn on the LLMS Txt module and pick post types, or the file stays empty. All in One SEO: Sitemaps > LLMs.txt. ThinkRank does it free under Essential SEO. No plugin: upload the file beside
wp-config.php. - Google does not use the file. Publish it for the agents and tools that fetch it. Whether any do is a separate question, measured in does llms.txt actually work in 2026.
Contents
| Platform | Where the file comes from | Section |
|---|---|---|
| Astro | static file, build-time endpoint, or Starlight plugin | Astro |
| Docusaurus | static/ folder, a postBuild hook, or an npm plugin | Docusaurus |
| Framer | a Pro-plan file upload | Framer |
| Ghost | a routes.yaml template route | Ghost |
| Hugo | a static/ file or a custom output format | Hugo |
| Next.js | public/ or a prerendered route handler | Next.js |
| Replit | client/public/ on Autoscale, a public directory on Static | Replit |
| Shopify | a theme template, templates/llms.txt.liquid | Shopify |
| Squarespace | a settings text field on version 7.1 | Squarespace |
| Webflow | a file upload in Site settings | Webflow |
| Wix | generated by Wix from your pages | Wix |
| WordPress | an SEO plugin switch, or a file in the web root | WordPress |
What every platform's file has to contain
The llms.txt spec was proposed by Jeremy Howard of Answer.AI on 3 September 2024. An H1 carrying the project name is the only required section. Version 2, published 10 August 2026, added rel="alternate" and rel="describedby" link relations for discovery. No standards body owns it, and Google's AI optimization guide says Google Search ignores these files. The page was re-fetched on 24 October 2026 and still answers 200.
A minimum passing file:
# Example
> Guides and API reference for Example.
## Docs
- [Quickstart](https://example.com/docs/quickstart): install and first request
- [API reference](https://example.com/docs/api): every endpoint, with examples
If you would rather not hand-roll it, the llms.txt generator drafts one from a URL. The mistakes that break a file from the inside are catalogued in llms.txt validator: the common mistakes, and how it differs from your other root files is in llms.txt vs robots.txt vs sitemap.
How the platforms differ, from the guides folded in so far:
| Platform | Cost of a valid file | Stays current on its own | Plan gate | Checked |
|---|---|---|---|---|
| Astro | 2 minutes (static) or 15 minutes (endpoint) | Yes, with the endpoint | None | 28 August 2026 |
| Docusaurus | 5 minutes (static), 20 minutes (hook) | Yes, with a hook or plugin | None | 4 September 2026 |
| Framer | about 10 minutes | No | Pro or Enterprise | 2 September 2026 |
| Ghost | about 15 minutes | Yes, the template reads your posts | None | 30 August 2026 |
| Hugo | 1 minute (static) or 10 minutes (output format) | Yes, with the output format | None | 3 September 2026 |
| Next.js | 2 minutes (static) or 15 minutes (route handler) | Yes, with the route handler | None | 27 August 2026 |
| Replit | about 5 minutes plus a republish | No | Autoscale or Reserved VM for Agent apps | 1 September 2026 |
| Shopify | 1 minute to confirm, 15 minutes to customise | No, unless an app regenerates it | Liquid theme (headless excluded) | 26 August 2026 |
Astro
Verified 28 August 2026. Plugin version re-checked 24 October 2026.
A valid llms.txt on Astro is either a two-minute file drop or a twenty-line endpoint that rebuilds itself from your content collections every time you run astro build. Astro's own documentation site does not publish one (checked 28 August 2026), so there is no upstream example to copy.
| If you want to | Do this | Where it lives | Time |
|---|---|---|---|
| Ship something valid today | Hand-write the file as a static asset | public/llms.txt | 2 minutes |
| Keep it current without editing it | Generate it from getCollection() | src/pages/llms.txt.ts | 15 minutes |
| Cover a Starlight docs site | Install starlight-llms-txt | astro.config.mjs | 5 minutes |
The endpoint is the version that survives a real blog. A hand-written file is stale the day you publish your next post.
Astro path A: a static file in public/
Astro's project structure guide describes public/ as the home for "non-code, unprocessed assets", and its own example tree puts robots.txt there. Everything in public/ is copied to the build root untouched.
- Create
public/llms.txtat the top level of your project, besidesrc/andastro.config.mjs. - Paste the Markdown above and swap in real absolute URLs.
- Run
npx astro buildand confirm the file appears atdist/llms.txt. - Deploy.
That is a correct answer for a marketing site with eight pages. On anything with a content collection behind it, you will forget to update it.
Astro path B: an endpoint built from your content collections
Astro's endpoints guide says a .js or .ts file in src/pages becomes a route with the extension stripped, so src/pages/data.json.ts builds /data.json. The same rule gives you /llms.txt from src/pages/llms.txt.ts. In a statically generated site, custom endpoints "are called at build time to produce static files", so this costs nothing at runtime.
Set site in astro.config.mjs first, because the spec wants absolute URLs:
// astro.config.mjs
import { defineConfig } from 'astro/config';
export default defineConfig({ site: 'https://example.com' });
Then create the endpoint:
// src/pages/llms.txt.ts
import type { APIRoute } from 'astro';
import { getCollection } from 'astro:content';
export const GET: APIRoute = async ({ site }) => {
const posts = (await getCollection('blog', ({ data }) => !data.draft))
.sort((a, b) => +b.data.pubDate - +a.data.pubDate);
const body = [
'# Example',
'',
'> Guides, API reference and engineering notes.',
'',
'## Blog',
'',
...posts.map(
(p) => `- [${p.data.title}](${new URL(`/blog/${p.id}/`, site)}): ${p.data.description}`,
),
'',
].join('\n');
return new Response(body, {
headers: { 'content-type': 'text/plain; charset=utf-8' },
});
};
getCollection() takes an optional filter function, which is how drafts stay out. Your src/content.config.ts schema already guarantees that title and description exist on every entry, and that is what makes the generated file reliable rather than hopeful.
Astro path C: Starlight documentation sites
If your docs run on Starlight, starlight-llms-txt does the whole job. It is written by Chris Swithinbank, a Starlight maintainer. Version 0.11.0 was published on 1 July 2026, and npm listed 0.12.0 as the latest on 24 October 2026. Install it with npm i starlight-llms-txt, add starlightLlmsTxt() to the plugins array inside starlight() in astro.config.mjs, and set site. It generates llms.txt, llms-full.txt and llms-small.txt, and the plugin docs tell you to preview at localhost:4321/llms.txt.
Three Astro traps
A trailing slash returns 404. Astro's endpoints guide is explicit: routes whose URLs include a file extension "can only be accessed without a trailing slash", whatever your build.trailingSlash setting says. So /llms.txt/ fails while /llms.txt works. Always test the bare path.
On-demand rendering regenerates the file on every request. If you run an adapter with server output, add export const prerender = true; to the endpoint so it is written once at build time.
Do not chase the content type. C2 does not check it. Both nextjs.org/docs/llms.txt and vercel.com/llms.txt serve text/plain; charset=utf-8, and both pass.
Docusaurus
Verified 4 September 2026. Package versions re-checked 24 October 2026.
A Docusaurus site can publish a completely valid llms.txt and still score zero on it. The reason is one config value. On GitHub Pages, the most common deployment target, a project site lives at https://your-org.github.io/your-project/, so baseUrl is /your-project/ and the file you dropped into static/ answers at /your-project/llms.txt. Nothing answers at the origin root. The build was fine. The URL was wrong.
| If you want to… | Do this | Time | Stays current on its own |
|---|---|---|---|
| Ship a file today | Put llms.txt in static/ | 5 min | No, you edit it by hand |
| Generate it from your real routes | Add an inline plugin with a postBuild hook | 20 min | Yes, every build |
| Skip writing code | Install a published plugin from npm | 10 min | Yes, every build |
| Serve it at the origin root | Deploy at baseUrl: '/', or add a host-level rewrite | Varies | N/A |
Why the file lands at a URL agents will not ask for
Docusaurus copies static/ straight into the build output. Its Static Assets page says: "Every file you put into that directory will be copied into the root of the generated build folder with the directory hierarchy preserved." The next paragraph is the one that matters: "for site baseUrl: '/subpath/', the image /static/img/docusaurus.png will be served at /subpath/img/docusaurus.png." According to the deployment guide, "For a site deployed at https://my-org.com/my-project/, baseUrl is /my-project/."
| Deployment | baseUrl | static/llms.txt is served at | Origin root /llms.txt |
|---|---|---|---|
docs.example.com (own domain) | / | https://docs.example.com/llms.txt | 200 |
example.com/docs/ (subpath) | /docs/ | https://example.com/docs/llms.txt | 404 |
org.github.io/project/ (GitHub Pages project site) | /project/ | https://org.github.io/project/llms.txt | 404 |
A subpath file is not invalid. The spec, fetched from llmstxt.org on 4 September 2026, allows it: "The llms.txt file spec is for files named llms.txt, at the root path /llms.txt of a website or at any subpath (e.g. /docs/llms.txt). A file covers the URLs under its path, and where more than one file applies, agents should use the most specific one." So /docs/llms.txt is spec-legal and useful. It is also invisible to any scanner that probes only the origin root, ours included. Know which one you published before you go looking for the score.
Docusaurus route 1: the static folder
- Create
static/llms.txtat the root of your Docusaurus project, besidedocusaurus.config.js. - Write the file, listing pages that answer questions (see below).
- Run
npm run build, thennpm run serve, and openhttp://localhost:3000plus yourbaseUrlandllms.txt. - Deploy.
If your team keeps generated assets somewhere other than static/, the staticDirectories option in docusaurus.config.js takes an array of paths, all copied to the build output as-is.
Docusaurus route 2: a postBuild hook that reads your real routes
Hand-written indexes drift the moment somebody adds a page. According to the lifecycle API reference, postBuild(props) is "Called when a (production) build finishes" and receives siteDir, outDir, baseUrl, siteConfig, routesPaths and routesBuildMetadata, which carries a noIndex flag per location. Add this to docusaurus.config.js as an inline plugin:
plugins: [
function llmsTxtPlugin() {
return {
name: 'llms-txt',
async postBuild({siteConfig, routesPaths, routesBuildMetadata, outDir}) {
const fs = await import('node:fs/promises');
const path = await import('node:path');
const lines = [
`# ${siteConfig.title}`,
'',
`> ${siteConfig.tagline}`,
'',
'## Docs',
];
for (const route of routesPaths) {
if (routesBuildMetadata?.[route]?.noIndex) continue;
if (route === '/404.html') continue;
lines.push(`- [${route}](${siteConfig.url}${route})`);
}
await fs.writeFile(
path.join(outDir, 'llms.txt'),
lines.join('\n') + '\n',
);
},
};
},
],
Writing into outDir puts the file at the build root, the same place static/ lands, so the baseUrl rule above still applies. Before you ship it, replace the raw route path with a real title, and group routes under separate ## headings rather than one flat list. Agents read the headings.
Docusaurus route 3: an npm plugin
| Package | Version | What it produces |
|---|---|---|
docusaurus-plugin-llms | 0.6.0 on 4 September 2026; 0.6.1 on 24 October 2026 | An llms.txt index following the llmstxt.org format |
@signalwire/docusaurus-plugin-llms-txt | 1.2.2 on both dates | Markdown twins of your HTML pages, plus an llms.txt index |
The second solves a problem the first does not touch: your links can point at Markdown rather than HTML, which is what an agent wants at the other end. Both are community packages, not part of @docusaurus/core. Read the README and pin the version.
Choosing which Docusaurus pages to list
A docs site's route list includes tag pages, archive pages and pagination, and none of those help a model. Start with the H1 naming the project, follow it with a blockquote summary, group links under ## headings such as ## Getting started and ## API reference, give every link a short note, and leave out anything carrying noIndex.
Confirm which Docusaurus URL you shipped
curl -sI https://yoursite.com/llms.txt | head -1
curl -sI https://yoursite.com/your-baseurl/llms.txt | head -1
Expect HTTP/2 200 from whichever one matches your baseUrl. A 404 from the origin root while the subpath returns 200 is the failure this section exists for. Status codes can be trusted on Docusaurus: verified on 4 September 2026, docusaurus.io/llms.txt returns a real 404 with a text/html body of 20,038 bytes, and an invented path returns the identical 404. Then read the body with curl -s https://yoursite.com/llms.txt | head -20. The first non-blank line must be a single # heading. If you see HTML, you are looking at your 404 page through a redirect.
AIScan's C2 check probes /llms.txt at the origin of the URL you give it. Give it the subpath URL and it still asks the origin root, so a spec-legal /docs/llms.txt reads as absent. That is a limit of the check rather than a fault in your file.
Framer
Verified 2 September 2026. Framer's help articles are script-rendered and were not re-fetched on 24 October 2026, so the plan and path details below carry their September date.
On Framer, llms.txt is not a file you commit and not a text box you fill in. It is an upload in a hosting panel, and that panel is switched off below a certain price.
| Question | Answer |
|---|---|
| Where does the file live? | Uploaded under Site Settings → Hosting → Files, with the path set to the domain root |
| Which plans can do it? | Pro and Enterprise only. Free and Basic sites cannot host a static file at all |
| What formats are accepted for llms.txt? | TXT for a standard file, JSON for structured data |
| Does it work before publishing? | No. The file appears only after the site is published |
| Does Framer generate it for you? | No. Framer auto-generates robots.txt and sitemap.xml, not llms.txt |
| Time to fix | About ten minutes, once you are on a plan that allows it |
The Framer plan gate comes first
Framer's static files article says, in its own words, "This feature is available on Pro and Enterprise plans." There is no workaround.
| Source | What it says about plans | Last updated |
|---|---|---|
| Framer help, "Static files" | "available on Pro and Enterprise plans" | 10 August 2026 |
| Framer help, "Add an llms.txt file to your site" | Pro and Enterprise in the body, and again in its FAQ | 10 August 2026 |
Framer pricing, snapshot in Framer's own llms.txt | Pro is $30 per month, billed monthly | 30 August 2026 |
According to the same article, "These settings used to live in the Domains dashboard and are now in your project's Site Settings, under Hosting." Older tutorials still point at the Domains dashboard, so ignore them.
Upload the file in Site Settings
- Open your dashboard.
- Open Site Settings.
- Go to Hosting → Files.
- Click the Add button.
- Upload your file.
- Set the file path. Framer's step says "do not include the file name", and its worked example is a path of
/pdfsproducingexample.com/pdfs/example.pdf. Its FAQ answers the root case directly: "You can upload a file and assign it to a root-level path such as/ads.txtor/llms.txt." So upload a file namedllms.txtand give it the root path. - Publish the site.
Delivery depends on the MIME type. text/plain, text/xml, application/json, application/pdf and the image, audio and video families render in a browser, and in Framer's phrasing "all other file types will automatically download instead of rendering." Upload Markdown with an .md extension and a crawler gets a download prompt rather than a body. Use .txt. The same panel handles .well-known files: set the path to /.well-known for security.txt, assetlinks.json or an AI plugin manifest.
Point the Framer links at Markdown twins
Framer serves a Markdown version of every optimised page at the same URL, through an Accept: text/markdown header or by appending ?md. Measured on 2 September 2026, www.framer.com/pricing with that header returned 200, text/markdown; charset=utf-8, 11,651 bytes, opening with YAML front matter. Framer's own file, fetched from www.framer.com/llms.txt that day, was 5,900 bytes and points at https://www.framer.com/ai/?md and its siblings rather than the HTML pages. It still answered 200 on 24 October 2026.
The caveat comes from Framer's AI agents article: "Markdown is only generated for optimized pages." That is not theoretical. Framer's own help articles are not optimised, and Accept: text/markdown on /help/articles/static-files/ returns text/html. Test any URL before you put its ?md form in your index.
Verify the Framer file landed
| What you see | What it means |
|---|---|
200 and text/plain | Working. Framer serves it from the edge with server: Framer |
404, tiny body | The upload is missing, the path is wrong, or the site has not been published since |
| A download prompt in the browser | Wrong extension. Re-upload as .txt |
200 but empty content | The file uploaded is empty; C2 will still fail |
Framer returns a real 404 for a missing root file. Verified on 2 September 2026, www.framer.com/llms-full.txt returned 404 with a ten-byte body, while an unknown page path returned the site's own 404 page. Framer does not answer 200 with the homepage the way Ghost does, so a status check on Framer is trustworthy.
Ghost
Verified 30 August 2026. The routing page was re-fetched on 24 October 2026 and still documents content_type.
Ghost has no setting for llms.txt and no folder you can drop a file into that lands on the site root. The fix takes about fifteen minutes: one route in routes.yaml, one Handlebars template, one upload. Ghost's routing documentation says routes render HTML unless you override it "by specifying a content_type property with a custom mime-type". That property is the whole trick.
| If you are on… | Do this | Where the file ends up | Time |
|---|---|---|---|
| Ghost(Pro) | Add a template route in routes.yaml, upload it under Settings > Labs | /llms.txt/ (with the slash) | ~15 min |
| Self-hosted Ghost | Same route, or an alias in nginx or Caddy | /llms.txt/, or /llms.txt via the proxy | ~10 min |
| Any Ghost site | Check the final URL and content type, not the status code | n/a | 1 min |
Why Ghost gives you nowhere to put the file
Ghost serves theme files under /assets/ and uploaded media under /content/images/. Neither is the site root, and Ghost admin has no file manager. So on Ghost the file cannot be a file. It has to be a route that renders text, from your posts, every time an agent asks.
Add the Ghost route
Ghost keeps its routing config at content/settings/routes.yaml:
routes:
/llms.txt/:
template: llms-txt
content_type: text/plain
collections:
/:
permalink: /{slug}/
template: index
taxonomies:
tag: /tag/{slug}/
author: /author/{slug}/
Keep the collections and taxonomies blocks. Uploading a routes file that omits them replaces your whole URL structure. The trailing slash is not optional. According to the routing page, "Trailing slashes are required" for dynamic routing, and Ghost "automatically forces trailing slashes". Writing the route as /llms.txt/ is what makes it resolve.
Write the Ghost template
Create llms-txt.hbs in your theme root, alongside index.hbs. The {{#get}} helper queries the Content API server-side before the template renders:
# {{@site.title}}
> {{@site.description}}
## Posts
{{#get "posts" limit="all" order="published_at desc"}}{{#foreach posts}}- [{{title}}]({{url absolute="true"}}): {{excerpt words="20"}}
{{/foreach}}{{/get}}
## Start here
- [About]({{@site.url}}/about/): who publishes this
The {{#get}} helper reads posts, tags, authors, tiers and newsletters. Pages are not one of those resources, so list your important pages by hand in a second ## section, as above. Zip the theme and upload it in Ghost admin. The uploader runs GScan, and according to Ghost's theme docs "any fatal errors will prevent the theme from being used", so a broken Handlebars block is caught before it reaches the site. Then upload routes.yaml under Settings > Labs. Editing the file on a self-hosted box works too, but Ghost has to be restarted.
Self-hosted Ghost shortcut
Behind nginx or Caddy you can skip the template and serve a static file at the bare path, which routes.yaml cannot give you:
location = /llms.txt {
alias /var/www/llms.txt;
default_type text/plain;
}
The trade-off: the proxy version never updates itself, while the template version regenerates from your posts on every request.
Read the Ghost response, not the status code
Verified on 30 August 2026, we requested /llms.txt from two Ghost publications that do not publish one, Platformer and 404 Media. Both returned 302 to the homepage, which then returned 200 with text/html. A follow-redirects status check therefore reports 200 on a Ghost site with no llms.txt at all. Check the destination:
curl -sIL https://example.com/llms.txt | grep -iE '^(HTTP|location|content-type)'
You want the chain to end on your own /llms.txt/ with content-type: text/plain. If the final location is your homepage, the route is not live.
| What you saw | What it means | Fix |
|---|---|---|
| 302 to the homepage | The route never loaded | Re-upload routes.yaml; confirm the key reads /llms.txt/ with both slashes |
Renders, but text/html | content_type missing or misindented | YAML nesting is two spaces, and Ghost is strict about it |
Renders as text, nothing under ## Posts | Wrong template filename | routes.yaml drops the .hbs, so template: llms-txt needs llms-txt.hbs |
| 200 with content, C2 still fails | A Ghost page slug collides with the route | Routes and slugs know nothing about each other, so one wins. Rename the page |
Re-run the scan after your next theme change, because a theme upload replaces llms-txt.hbs.
Hugo
Verified 3 September 2026. Hugo docs pages and the 404 on gohugo.io re-fetched 25 October 2026; the latest Hugo release was v0.146 or later throughout, so the template name below still applies.
Hugo has no llms.txt setting, no plugin and no checkbox. What it has is an output format system that already builds robots.txt and sitemap.xml, so the file can be generated from your content on every build instead of maintained by hand. Hugo's own site publishes none: gohugo.io/llms.txt returned a real 404 on 3 September and again on 25 October 2026.
static/llms.txt | Custom output format | |
|---|---|---|
| Setup time | Under a minute | Five to ten minutes |
| Updates when you publish a post | No | Yes |
| Needs a template | No | Yes, one file |
| Breaks if you rename a section | Silently | Loudly, at build time |
| Good for | Small sites, a hand-curated index | Blogs and docs with more than about 20 pages |
Hugo route one: static/llms.txt
Hugo's directory structure page describes static as the directory whose files are copied to public on build, and names robots.txt as an example. Create static/llms.txt with the minimum file from earlier in this guide, run hugo, and it lands at public/llms.txt untouched.
Hugo route two: an output format that builds the file
Hugo's output formats configuration lists the built-in robots format as mediaType: text/plain, baseName: robots, isPlainText: true. Copy that shape and change the base name. In hugo.toml:
[outputFormats.llms]
mediaType = 'text/plain'
baseName = 'llms'
isPlainText = true
[outputs]
home = ['html', 'rss', 'llms']
text/plain is already a registered media type with txt as its suffix, so no [mediaTypes] block is needed. Keep html first in the home list, because the first element is the primary output format for that page kind.
Then create layouts/home.llms.txt:
# {{ site.Title }}
> {{ site.Params.description }}
## Pages
{{ range .Site.RegularPages }}
- [{{ .LinkTitle }}]({{ .Permalink }}): {{ .Summary | plainify | truncate 120 }}
{{- end }}
Every new post appears in the file on the next build.
Two Hugo traps
The template filename changed in v0.146.0. Hugo's template lookup page says the template system had a complete overhaul in that release. The pattern is now <kind>.<output format name>.<suffix>, so a home-page file for the llms format is layouts/home.llms.txt. A tutorial from before March 2025 says layouts/index.llms.txt, and on current Hugo that builds nothing and reports no error. If public/llms.txt is missing, check this name and the outputs list before you look at the deploy.
A base template can wrap the file in HTML. Hugo applies baseof.html only to a template whose content is define actions, whitespace and comments. A plain-text template with raw text and range blocks is executed as written. If your file opens with <!DOCTYPE html>, you wrapped the body in {{ define "main" }}. Remove it.
Verify the Hugo file
hugo --cleanDestinationDir
head -5 public/llms.txt
curl -s -o /dev/null -w '%{http_code} %{content_type}\n' https://yoursite.com/llms.txt
Expect 200 text/plain; charset=utf-8. A status check can be trusted on Hugo: a missing file is a hard 404, not the app shell, so a 200 means a real file. The static route also needs a content review. A stale static/llms.txt that omits half your posts still passes C2.
Next.js
Verified 27 August 2026. The Next.js docs pages, nextjs.org/docs/llms.txt and vercel.com/llms.txt re-fetched 25 October 2026 (all 200, text/plain); the current Next.js release is 16.4.3.
On Next.js you can pass C2 in about two minutes. There is no webroot to drop a file into, because everything is a route, and the App Router has file conventions for robots.ts, sitemap.ts and manifest.json but none for llms. So the file falls between a static asset and generated metadata. Two ways work.
| If you want | Do this | Exact file | Time |
|---|---|---|---|
| The fastest pass | Drop a static file | public/llms.txt | 2 minutes |
| A file that stays current | Prerender a route handler | app/llms.txt/route.ts | 15 minutes |
It to work under output: 'export' | Add export const dynamic = 'force-static' | app/llms.txt/route.ts | 1 extra line |
Pages Router, no app/ directory | Generate into public/ from a prebuild script | scripts/gen-llms.mjs | 20 minutes |
Next.js path 1: public/llms.txt
Files in public are served from the base URL, so public/llms.txt answers at /llms.txt. Put it at the project root beside package.json, not inside app/ or src/app/. Next.js sends Cache-Control: public, max-age=0 for everything in public, so an edit goes live on the next deploy without a purge. This path rots: you ship a page and forget the file.
Next.js path 2: a route handler
Create app/llms.txt/route.ts. The directory name is the URL.
export const dynamic = 'force-static'
export async function GET() {
const posts = await getAllPosts() // your existing content source
const body = [
'# Acme Inc.',
'',
'> One or two sentences on what Acme does.',
'',
'## Guides',
...posts.map((p) => `- [${p.title}](https://acme.com/blog/${p.slug}): ${p.summary}`),
].join('\n')
return new Response(body, {
headers: { 'Content-Type': 'text/markdown; charset=utf-8' },
})
}
force-static makes the handler prerender at build instead of running per request. Use one path only: public/llms.txt and app/llms.txt/route.ts together are a route conflict and the build fails. Delete the one you do not want.
Next.js under a static export
With output: 'export', Next.js's static export guide requires export const dynamic = 'force-static' for a route handler, supports only GET, and lists headers in next.config.js among the unsupported features. The handler's output is written into out/ at build time and your static host picks the content type, so check it with curl instead of trusting your Response headers. On the Pages Router there is no prerendering route handler. Write the file instead: a scripts/gen-llms.mjs that writes public/llms.txt, plus "prebuild": "node scripts/gen-llms.mjs" in package.json, which npm runs before build.
Verify the Next.js file
curl -sI https://yoursite.com/llms.txt | head -1
curl -s https://yoursite.com/llms.txt | head -20
Expect HTTP/2 200, a first line starting # , one ## heading and at least one - [Label](https://...) line. A 200 that returns <!DOCTYPE html> means a catch-all route answered, which is a fail. If the file works locally but 404s in production, it is almost always in the wrong directory. Content type is not checked by C2: nextjs.org/docs/llms.txt and vercel.com/llms.txt both serve text/plain and pass.
Replit
Verified 1 September 2026. Replit's docs pages and both Replit llms.txt files re-fetched 25 October 2026 (200). The .replit and Vite scaffold details were not re-read and carry their September date.
On Replit, publishing /llms.txt is two different jobs, depending on how the app is published. An app built by Agent runs on an Autoscale Deployment with your own Express server answering every path, so the file is a build asset your server hands out. A Static Deployment has no server, so the file is a plain file in a public directory. Replit's deployment types page says that Static Deployments are not compatible with Replit Apps created using Agent.
| Deployment type | Who serves /llms.txt | Where the file lives |
|---|---|---|
| Autoscale (default, and every Agent app) | Your Express server | client/public/llms.txt, built into dist/public |
| Static | Replit's file server | The public directory you name when publishing |
| Reserved VM | Your server, always on | Same as Autoscale |
| Scheduled | Nothing is served | Not applicable |
To find your type, open .replit (show hidden files in the file tree menu) and read deploymentTarget under [deployment]. An Agent scaffold carries deploymentTarget = "autoscale".
Replit path A: an Agent app on Autoscale
The scaffold's vite.config.ts sets root to client/ and builds into dist/public. Vite copies the root's public/ folder into the build output untouched.
- In the file tree, open client, then public.
- Create
llms.txtthere. Notclient/llms.txt, and not the repository root. - Write the file.
- Click Publish, then Republish. The build step runs
npm run build, which copies the file.
No route code is needed, because the scaffold's server/vite.ts serves the build directory with express.static() in production. The workspace preview serves client/public directly, so a file can work there and still be missing on the published app until the build has run.
Replit path B: a Static Deployment
Set the public directory in the Publishing tool under Adjust settings, put llms.txt at its top level and republish. Static also lets you set the content type from .replit:
[[deployment.responseHeaders]]
path = "/llms.txt"
name = "Content-Type"
value = "text/markdown; charset=utf-8"
Replit's static deployment guide reserves fifteen headers, among them Content-Encoding, Content-Length, Location, Server and Set-Cookie. Content-Type is not on the list, so the rule takes effect after a republish. C2 does not require it.
The Replit 200 that means nothing
The scaffold's production server ends with a catch-all:
app.use(express.static(distPath));
app.use("*", (_req, res) => {
res.sendFile(path.resolve(distPath, "index.html"));
});
A request for /llms.txt on an app with no such file returns 200 with text/html and your homepage. A status-only check reports success. Check the content type and the first line:
curl -sI https://yourapp.replit.app/llms.txt | head -3
curl -s https://yourapp.replit.app/llms.txt | head -1
The first should not say text/html, and the second should be your # heading, not <!DOCTYPE html>. Grade the published domain, since that is what agents fetch.
What Replit's own files show
Both fetched on 1 September 2026, and both still answering 200 on 25 October 2026:
| File | Bytes | H1 | H2 | H3 | Links ending .md | Content type |
|---|---|---|---|---|---|---|
docs.replit.com/llms.txt | 39,522 | 1 | 9 | 40 | 204 | text/plain; charset=utf-8 |
replit.com/llms.txt | 20,191 | 1 | 16 | 0 | 228 | text/plain |
The docs file carries forty ### headings, deeper nesting than the format asks for. Both point at .md targets rather than HTML pages, which is the part hand-written files tend to miss. The byte counts are from the September fetch and have not been re-measured.
Shopify
Verified 26 August 2026. Re-checked 25 October 2026: kotn.com/llms.txt and, after a redirect to the www host, allbirds.com/llms.txt both returned 200 with text/markdown; charset=utf-8. The template details below carry their August date.
If your store runs a Liquid theme, Shopify already serves /llms.txt. We checked four live storefronts on 26 August 2026 (Allbirds, Brooklinen, Kotn and Red Bull Shop US) and all four returned 200 with content-type: text/markdown; charset=utf-8. So on Shopify, C2 is usually a one-minute confirmation. The real work is replacing the generic default with a file that describes your catalogue. Once it is live, a <link rel="describedby"> tag in layout/theme.liquid points agents at it; Shopify lets you add no response header, so the head tag is the route.
| If you want to | Do this | Where | Time |
|---|---|---|---|
| Confirm you already pass C2 | curl -sI https://yourstore.com/llms.txt | Terminal | 1 minute |
| Replace Shopify's default text | Create templates/llms.txt.liquid | Online Store, Themes, Edit code | 15 minutes |
| Control the long-form file too | Add templates/llms-full.txt.liquid | Same code editor | 10 more minutes |
| Fix a 404 | You are probably headless. Serve the route from your frontend | Hydrogen or Next.js app | 30 minutes |
Do not upload a file. Shopify has no writable web root, and /llms.txt is a theme template on this platform, not a static asset.
What Shopify serves by default
Shopify's template documentation says it manages /llms.txt by mirroring the content of /agents.md when no template exists. On the stores we checked it points agents at the Universal Commerce Protocol discovery endpoint at /.well-known/ucp and at the store's MCP endpoint. It says nothing about what you sell, where you ship or which page answers a returns question. Check what you serve now:
curl -sI https://yourstore.com/llms.txt | grep -Ei 'http/2|content-type|pageType'
A pass shows HTTP/2 200, content-type: text/markdown; charset=utf-8 and pageType;desc="llms_txt" in server-timing, which proves Shopify's own route answered rather than a redirect or an app proxy.
Write your own Shopify template
From the admin, open Online Store, Themes, the ... menu on the published theme, then Edit code. Under Templates, create exactly templates/llms.txt.liquid. Shopify announced these customisable templates in its developer changelog on 28 May 2026, with templates/agents.md.liquid and templates/llms-full.txt.liquid. Two constraints:
- The file must be
.liquid. A.jsontemplate will not work. - Only the
requestandagentsobjects are injected.shop,collectionsandarticlesare not available, so write the rest literally.
# Northwind Supply
> Independent outdoor gear. Ships to the US and Canada.
> Free returns within 60 days.
## Catalogue
- [All products](https://northwind.example/collections/all): full catalogue with prices in USD
- [Size guide](https://northwind.example/pages/sizing): measurements for every model
## Policies
- [Shipping and returns](https://northwind.example/policies/refund-policy)
## Contact
- support@northwind.example
Inheritance matters: with no llms.txt.liquid, Shopify falls back to agents.md.liquid, then to its generated default. Adding only agents.md.liquid therefore serves your text at /llms.txt too.
Keeping the Shopify file current
A hand-written template ages badly, because nothing regenerates it when you add a collection or retire a line, and a new theme means a new templates/ directory. StoreSEO is our Shopify app, and it generates llms.txt from your products, collections, pages and articles, with a no-code editor for agents.md. Nothing in this section requires an app: the theme template above is complete on its own.
Shopify traps
A 404 means headless, usually. A storefront served by Hydrogen or Next.js never runs the Liquid template layer, so you add the route in your own app and return text/markdown. On a Liquid theme, a 404 more often means you edited an unpublished theme: the file must be on the one marked Current theme.
Still showing the default text? The filename is wrong. It is llms.txt.liquid, not llms-txt.liquid.
No locale copy. The file is served at the bare primary domain only, so https://yourstore.com/en-ca/llms.txt returns 404 by design. Never link to a locale-prefixed copy.
Pass looks like: 200 text/markdown; charset=utf-8 and a first line that is your own # heading rather than Shopify's "Agent Instructions" text. A 200 with text/html means something other than Shopify is answering that path.
Squarespace
Verified 31 August 2026. Re-checked 26 October 2026: squarespace.com/llms.txt still answers 200 as text/plain. The help-article quotes below carry their original dates; Squarespace's help centre was not re-fetched.
On Squarespace, llms.txt is not a file. Every upload goes to a CDN host (images.squarespace-cdn.com, static.squarespace.com or static1.squarespace.com), and Squarespace's guide to image and file URLs, last updated 22 May 2026, says it is "not possible to customize or redirect a static asset URL." Its URL mappings guide, last updated 14 January 2026, adds that you "can't redirect image or file URLs." So uploading a file and redirecting /llms.txt to it cannot work. What you get is a text box, and only on version 7.1.
| Route | Works? | Why |
|---|---|---|
| The LLMS.txt tab | Yes, on 7.1 | The one supported mechanism |
Upload a .txt file | No | It lands on a CDN domain, not your root |
Redirect /llms.txt to an upload | No | File URLs cannot be redirected |
| Code injection | No | It adds markup to HTML pages, not a plain-text path |
| The LLMS.txt tab on 7.0 | Not available | Documented for version 7.1 sites only |
Turn on the Squarespace LLMS.txt tab
From Squarespace's "Create an llms.txt file" guide, last updated 22 July 2026:
- Open the SEO/AI Visibility panel.
- Click SEO Settings, then the LLMS.txt tab.
- The file is disabled until you paste Markdown into the field.
- Click Save.
To switch it off, click Delete in the same tab and save again. There is no separate toggle: text in the field is what enables the file. Squarespace gives no advice on what to write, because the format is still a proposed standard. A short passing file looks like this:
# Ridgeline Studio
> Interior design studio in Leeds. Residential projects, fees and process.
## Core pages
- [Services](https://example.com/services): What we do and typical project scope.
- [Fees](https://example.com/fees): Day rates and fixed-fee bands.
- [Contact](https://example.com/contact): Enquiry form and studio address.
Keep it short. Version 2 of the spec dropped the context-expansion tooling that treated the file as a content dump, so a mirror of your sitemap is wasted effort.
Squarespace traps
The tab is missing. Your site is on 7.0. The feature is absent from that version rather than hidden behind a plan, and moving from 7.0 to 7.1 is a rebuild, not a switch.
A 404 after saving. Reopen the tab and check the text is still there, then save again. Measured on 31 August 2026, an unknown root path such as /foo-not-real.txt returns a hard 404 on Squarespace, so a 404 is honest. A 200 with an empty body means the field saved blank.
Trailing slash. Also measured on 31 August 2026, /llms.txt/ returns a 301 to the file. That is the opposite of Astro, where an extension endpoint is unreachable with a trailing slash.
Pass looks like HTTP/2 200 and your H1 as the first line of curl -s https://yoursite.com/llms.txt | head -5.
Webflow
Verified 29 August 2026. Re-checked 26 October 2026: webflow.com/llms.txt still answers 200 as text/plain; charset=utf-8. Webflow's help centre refused an automated fetch that day (403), so the upload rules below carry their August date.
Webflow added a native llms.txt upload on 23 July 2025. Go to Site settings > SEO > LLMs.txt, click Upload file, publish the site, and the file answers at https://yourdomain.com/llms.txt. Webflow's help article requires the file to be UTF-8 and under 100 KB, and says it "won't be published to your Webflow staging domain."
| If you want to | Do this | Time |
|---|---|---|
| Publish the file | Upload a .txt under Site settings > SEO > LLMs.txt, then publish | 5 min |
| Know the size limit | UTF-8, under 100 KB | n/a |
| Test before launch | You cannot; .webflow.io never serves it | n/a |
| Fix a failing C2 | Add an H1, one ## section and Markdown links | 10 min |
Webflow steps
- Save the file locally as
llms.txt, UTF-8, no BOM. - Open Site settings, then the SEO tab.
- In the LLMs.txt section, click Upload file and choose it.
- Publish to your custom domain. Nothing is live until you do.
Because it is an upload, nothing regenerates it when your CMS changes. Re-upload whenever you ship a new service page or case study, and diff the link list against your sitemap each quarter. A skeleton that passes C2:
# Acme Studio
> Brand and web design studio in Lisbon. Case studies, services and pricing.
## Services
- [Brand identity](https://example.com/services/brand): Naming, logo, type and colour systems.
- [Web design](https://example.com/services/web): Webflow builds, CMS setup, ongoing support.
## Work
- [Case studies](https://example.com/work): 14 projects with outcomes and timelines.
Webflow traps
100 KB is a ceiling, not a guideline. stripe.com/llms.txt was 65,026 bytes when we measured it on 29 August 2026, and that file is closer to a content dump than a map. Cut a draft near the limit to a curated index of 30 to 60 URLs.
Staging cannot verify anything. Your first proof comes after a production publish, so fetch the live URL straight afterwards.
x-robots-tag: noindex is deliberate. Webflow sends it so the file stays out of search results; it does not stop an agent requesting it. Google's AI optimization guide says Google Search ignores llms.txt anyway. On 29 August 2026 Webflow's own file returned 200, text/plain; charset=utf-8 and that header.
A file with no heading fails. A bare list of URLs returns 200 and still fails C2. Add a # Site name line and one ## Section, re-upload and publish again.
Wix
Verified 5 September 2026. Re-checked 26 October 2026: Wix's llms.txt help article, its indexing article and its NLWeb article all answer 200, and www.wix.com/llms.txt still answers 200 as text/plain; charset=utf-8. The byte counts and menu paths below are from the September check.
Every other section here asks you to create a file. Wix already wrote yours. According to Wix's help article on the file, Wix generates it from your published pages and keeps it current. Your job is to check that your site qualifies, read what Wix said about your business, and know what the first edit costs.
Why a Wix site has no llms.txt
The prerequisites are an upgraded plan, a connected custom domain, and search engine indexing switched on. Each is a separate way to end up with nothing at /llms.txt.
| What is missing | What you see | Where to fix it |
|---|---|---|
| A free plan | No file, nothing to view in the panel | Upgrade the site |
A wixsite.com address only | No file on any address you control | Connect a custom domain |
| Indexing off | Site hidden from crawlers | SEO & GEO > Tools and settings > SEO Settings, enable Let search engines index your site |
The third catches people who hid a site during a rebuild and never switched it back. A request to a Wix address that is not published returns a plain 404, so there is no ambiguous middle state.
Read the generated Wix file
Go to SEO & GEO, scroll to Tools and settings, click Go to llms.txt, then View File. Read it properly: a generated summary of a business goes stale after a repositioning. For scale, https://www.wix.com/llms.txt returned 200 as text/plain; charset=utf-8 at 36,670 bytes on 5 September 2026, with one # heading, a > summary, 22 ## sections and 132 link bullets.
The first edit stops automatic updates
Wix says that once you edit the file, "it will stop updating automatically so your changes are preserved." To edit, use More Actions > Edit file > Continue, change the text and Save Changes. Reset to Default restores the generated version and restarts updates.
| Situation | Better choice |
|---|---|
| The description is stale after a repositioning | Edit it, and diary a review each time you add pages |
| You keep adding pages and posts | Leave it generated |
| You edited months ago and have shipped pages since | Reset to Default, then re-read it |
The risk is forgetting you edited, and publishing a frozen index of a site that has since grown.
Wix opt-out, privacy and NLWeb
An opt-out toggle under Privacy & Control hides the file. Wix's FAQ says the file only includes content already public on your site and never exposes private, password-protected or member-only content, so opting out removes an index of public pages and closes nothing off.
In the same Tools and settings list, Wix offers NLWeb, which it describes as an open-source framework from Microsoft that makes your site queryable by people and AI agents. It switches on the ASK protocol, needs the same upgraded site and domain, and changes nothing about Google or Bing rankings. llms.txt is a static index; NLWeb is a live query layer. C2 grades the file only.
Verify the Wix file
curl -sI https://yoursite.com/llms.txt
Expect HTTP/2 200 and content-type: text/plain; charset=utf-8. Anything else on an upgraded, domain-connected, indexed site points back at the three preconditions. If AIScan fails C2 but you can see the file in the dashboard, either the opt-out toggle is on or you scanned a different hostname from the published one, so scan the exact canonical address, www or not. C2 probes the origin root only, which is why a Docusaurus project site can fail it too.
WordPress
Verified on 23 November 2026 against each plugin's own documentation and its current code on wordpress.org: Yoast SEO 28.9, Rank Math 1.0.282, All in One SEO 5.0.5.1, ThinkRank 2.23.0.
On WordPress the file nearly always comes from an SEO plugin, and the plugin being installed is not the same as the file being on. Our count of 212 WordPress sites by SEO plugin (latest scan per host, rubric 2026.08.2, 19 November 2026) found C2 passing on 37 of 63 Yoast sites (59%), 37 of 78 Rank Math sites (47%), 8 of 8 All in One SEO sites, 3 of 5 ThinkRank sites and 23 of 57 sites with no SEO plugin detected (40%). The scan database was unreachable on 23 November, so those figures were not re-run for this update. The plugins' own defaults explain most of the gap, and each one is a switch you can check in two minutes.
| Plugin | Where the switch is | Plan | On after install? |
|---|---|---|---|
| ThinkRank | ThinkRank > Essential SEO, Crawling & AI Indexing | Free since v1.0.0; llms-full.txt is Pro | Turn it on once |
| Yoast SEO | Yoast SEO > Settings > Site features > AI tools > llms.txt | Free | Off until you toggle it |
| Rank Math | Rank Math SEO > Dashboard, LLMS Txt module | Free plugin ships it | Module off; file empty until configured |
| All in One SEO | All in One SEO > Sitemaps > LLMs.txt | The free Lite code ships it | Docs say yes; the 5.0.5.1 code default says no |
WordPress route 1: ThinkRank
ThinkRank is our own plugin, so weigh this paragraph with that in mind. It writes robots.txt, robots meta, schema, sitemaps and llms.txt from one plugin, which matters here because the most common WordPress llms.txt fault is two plugins, or a plugin and a stray file, answering for the same URL. Its importer brings settings across from Yoast, Rank Math, All in One SEO and SEOPress, then deactivates the old plugin. ThinkRank's llms.txt documentation (last updated 24 September 2026) gives these steps:
- Go to ThinkRank > Essential SEO and open the Crawling & AI Indexing area.
- Turn on LLMs.txt and fill in the site's core details. Leave Auto-generate on so the file rebuilds when content changes.
- Pick the delivery, available free since 2.0.1: Static file in the site root writes a physical
llms.txt; Served by WordPress builds it on request with no file written. According to ThinkRank's docs, the second is the one to pick on hosts where the WordPress folder is read only.
The generated file covers posts, pages and WooCommerce products. ThinkRank Pro 2.8.0 and later adds llms-full.txt (ThinkRank > Essential SEO, expand Crawling, choose llms-full.txt, then Publish llms-full.txt) and an AI usage policy at the top of the file. C2 grades neither.
WordPress route 2: Yoast SEO
According to Yoast's feature page, the generator is "free for everyone". The switch is off on a fresh install, which fits a pass rate a little above half. Yoast's help article gives the path:
- Yoast SEO > Settings > Site features.
- Under AI tools, go to llms.txt and turn the toggle on. Yoast describes the on state as purple with a checkmark.
- Click Save changes.
To choose the pages yourself, open Customize llms.txt file in the same place and select Manual page selection. Two limits are in Yoast's own words. The feature "is not available for multisite", so a network install needs another route. If you see "Your llms.txt file couldn't be auto-generated", Yoast points you at the web server's filesystem permissions, which tells you it writes a real file to disk. Yoast also says that switching from its sitemap_index.xml to core's wp-sitemap.xml means turning off both the sitemap and llms.txt features, waiting five minutes, then turning llms.txt back on.
WordPress route 3: Rank Math
Rank Math has the lowest pass rate of the four, and its own knowledge base article shows why: the feature is a module, and "by default, the file will be empty until you configure it." The module ships in the free plugin; the includes/modules/llms/ folder is in the 1.0.282 code on wordpress.org.
- Rank Math SEO > Dashboard, find the LLMS Txt module and turn it on.
- Open its settings, or go to Rank Math SEO > General Settings > Edit llms.txt.
- Under Select Post Types, pick at least Posts or Pages. Select Taxonomies adds categories or tags. Posts/Terms Limit defaults to 100. Additional Content takes extra lines you write yourself.
- Click Save Changes, then use the preview link at the top of the tab.
According to Rank Math, posts set to noindex are left out of the file. A site that noindexes most of its content gets a short file. It can still pass C2 as long as one ## section with links remains.
WordPress route 4: All in One SEO
According to All in One SEO's documentation (last updated 14 August 2026), the feature "is enabled by default". Every AIOSEO site in our count passed C2. But in the 5.0.5.1 code on wordpress.org, the option sitemap > llms > enable has a default of false (Options.php, read 23 November 2026). We did not install it to see which one a fresh site gets, so check rather than assume:
- All in One SEO > Sitemaps, then the LLMs.txt tab.
- Enable llms.txt and click Open llms.txt to see it. llms-full.txt and Convert Posts to Markdown are separate switches on the same screen.
- Under LLMs.txt Settings, the title defaults to your Site Title and the description to your Tagline. You can also set Post Types, Taxonomies, URLs per Post Type / Taxonomy and the Exclude Posts / Pages list.
The docs add that llms-full.txt takes about a minute to generate after you save, and its button stays grey until it is ready.
WordPress route 5: no plugin
Upload a hand-written llms.txt to the web root, the folder that holds wp-config.php, over SFTP or your host's file manager. Apache and nginx serve a real file before a request ever reaches WordPress, so it needs no code. Draft it with our llms.txt generator, and remember that a static file goes stale the day you publish a new post. That staleness is the trade-off against the plugins above.
Three WordPress traps
Two owners for one URL. A physical llms.txt left in the web root wins over any plugin that builds the file on request, because the web server finds the file first. If the plugin preview and curl disagree, look in the root for an old file and delete it, or switch the plugin to writing the static file itself. Run one generator, not two.
A security plugin answers 403. A security plugin or host firewall that blocks unfamiliar bots can refuse the agents that fetch this file. C2 fails on a 403 whatever the file says. See the security plugin fix.
A page cache serves the wrong headers. C2 does not grade the content type, but agents read it. If a cache or CDN rule serves /llms.txt as text/html or with the wrong charset, exclude the path from the page cache and purge it. The content-type fix has the headers to expect.
Verify the WordPress file
Run npx aiscan-cli yoursite.com and read row C2 in the content dimension; it names which of the four conditions failed. Then, by hand:
| Command | Passing signal | Failing signal |
|---|---|---|
curl -sI https://yoursite.com/llms.txt | 200 and content-type: text/plain | 404 (switch off, or Rank Math with nothing selected), 403 (firewall) |
curl -s https://yoursite.com/llms.txt | head -1 | # Your Site Title | blank, or <!DOCTYPE html> |
curl -s https://yoursite.com/llms.txt | grep -c '](http' | 1 or more | 0: post types not selected |
The common llms.txt mistakes guide covers what to do when the file passes but reads badly. For WordPress robots.txt, AI bot rules and Content Signals, the WordPress section of the setup guide has the rest, and every WordPress guide is listed on the WordPress platform page.
Confirm any platform's file passes C2
Scan first. npx aiscan-cli yoursite.com returns the whole content dimension, and row C2 names which of the four conditions failed rather than telling you something is wrong. It is free and needs no account. To check by hand:
curl -sSL -o llms.txt -w '%{http_code}\n' https://example.com/llms.txt # expect 200
head -1 llms.txt # expect "# Example"
grep -c '^## ' llms.txt # expect >= 1
grep -cF '](http' llms.txt # expect >= 1
| C2 can tell you | C2 cannot tell you |
|---|---|
| The file exists and returns 200 | Whether the URLs inside it resolve |
It has an H1 and a ## section | Whether the descriptions are accurate |
| It carries Markdown links | Whether any assistant has ever fetched it |
Server logs answer the last one. Filter for requests to /llms.txt and see who turns up. Read C2 next to C1 (Markdown for agents) and C3 (structured HTML), because the same build step usually moves all three. Every other fix guide sits at aiscan.site/guides.
Frequently asked questions
What does a valid llms.txt need to pass AIScan check C2?
Four things: the file returns HTTP 200, it has an H1, it has at least one ## section, and it contains Markdown links. C2 does not check the content type, so text/plain is fine. A file that loads in the browser but opens with a paragraph instead of a # heading still fails.
Does Google use llms.txt?
No. Google's AI optimization guide states that Google Search ignores these files and that keeping one neither helps nor harms rankings. Publish it for the agents and directed tools that do fetch it.
Where does llms.txt go in an Astro project?
A hand-written file belongs at public/llms.txt, which Astro copies to the build root untouched. A generated one belongs at src/pages/llms.txt.ts, because Astro strips the .ts extension and serves the route as /llms.txt. Test the bare path, since routes with a file extension cannot be reached with a trailing slash.
Why does my Docusaurus llms.txt return 404 at the site root?
Almost certainly baseUrl. Docusaurus copies static/ to the build root, and the build root is served under your baseUrl. If baseUrl is /my-project/, the file answers at /my-project/llms.txt and the origin root has nothing. Deploy at baseUrl: '/' on its own domain or add a host-level rewrite.
Is a file at /docs/llms.txt valid?
Yes. The llms.txt specification allows the file at the root path or at any subpath, and says agents should use the most specific file that applies. Scanners that probe only the origin root, AIScan's C2 included, will report it as absent.
Which Framer plans can host an llms.txt file?
Pro and Enterprise. Framer's static files article says the feature is available on those plans, so Free and Basic sites cannot host a file at the domain root. Upload it under Site Settings, Hosting, Files with the root path, as a .txt file, and publish the site. This was checked on 2 September 2026.
Why does my Framer llms.txt download instead of displaying?
Framer renders only certain MIME types in the browser, including text/plain, and downloads everything else. A file uploaded with an .md extension falls outside that list. Re-upload the same content as llms.txt with a .txt extension.
Does Ghost have a built-in llms.txt setting?
No. As of 30 August 2026 Ghost admin has no llms.txt option and no file manager, so the file has to come from a template route in routes.yaml with content_type: text/plain, or from the reverse proxy in front of a self-hosted install.
Why does a status check say my Ghost site has llms.txt when it does not?
Ghost answers a missing /llms.txt with a 302 to the homepage, which returns 200 with text/html. A check that follows redirects reports 200. Run curl -sIL and confirm the chain ends on your own /llms.txt/ with content-type: text/plain.
Which Hugo template name builds llms.txt?
layouts/home.llms.txt on Hugo v0.146.0 and later, for an output format named llms with a txt suffix. Older tutorials say layouts/index.llms.txt, which current Hugo does not look for. A wrong name builds nothing and reports no error.
Why does my Hugo llms.txt start with <!DOCTYPE html>?
The template is wrapped in a define action, so baseof.html applies. A plain-text template with raw text and range blocks is executed as written. Remove the {{ define "main" }} wrapper.
Do I need export const dynamic = 'force-static' on Next.js?
Only when you build with output: 'export', where Next.js requires it to prerender a route handler. On a normal deploy it is harmless and pins the route to build time instead of running per request.
Why is there a route conflict on /llms.txt in Next.js?
Both public/llms.txt and app/llms.txt/route.ts claim the same URL. Delete one. Keep the route handler if you want the file regenerated from your content on each deploy.
My Replit llms.txt returns 200 but the body is my homepage. Why?
The file is not in the build. The Express scaffold Agent writes ends with a catch-all that sends index.html for any unmatched path, so a missing file answers 200 with text/html. Put the file at client/public/llms.txt, republish, and check the first line of the body.
Where does llms.txt go on a Replit app built by Agent?
client/public/llms.txt. Agent apps publish as Autoscale Deployments, the front end lives under client/, and Vite copies that folder's public directory into the build output that Express serves. Then Publish and Republish.
Does Shopify create an llms.txt automatically?
Yes, on a Liquid storefront. With no theme template, Shopify mirrors /agents.md at /llms.txt as text/markdown. It describes agent commerce endpoints rather than your catalogue, which is why most merchants replace it with templates/llms.txt.liquid.
Why does my Shopify store return 404 on /llms.txt?
Usually a headless storefront (Hydrogen, Next.js), where the Liquid template layer never runs, so you add the route in your own app. On a Liquid theme, check that you edited the theme marked Current theme and that the file is named exactly templates/llms.txt.liquid.
I can't find the LLMS.txt tab on Squarespace. Where is it?
It sits at SEO/AI Visibility > SEO Settings > LLMS.txt. If the tab is missing, your site is almost certainly on version 7.0, because Squarespace documents the feature for version 7.1 sites only.
I uploaded llms.txt to Squarespace and pointed a URL mapping at it. Why doesn't it work?
Squarespace's URL mappings guide says you can't redirect image or file URLs, because static assets sit on CDN providers. Use the built-in LLMS.txt tab instead; code injection does not help either, since it only adds markup to HTML pages.
Why does my Webflow llms.txt return 404 on the webflow.io preview?
Webflow's help article says the file won't be published to the staging domain. It appears on your custom domain only after a production publish, so test there.
Webflow sends x-robots-tag: noindex on llms.txt. Is that a problem?
No. Webflow does it on purpose to keep the file out of search results, and it does not stop an agent requesting the URL. Google's AI optimization guide says Google Search ignores llms.txt files anyway.
Webflow rejected my llms.txt on upload. Why?
The file must be UTF-8 and under 100 KB. Re-save it as plain UTF-8 without a byte order mark, and if it is over the limit, cut it to a curated index of your best 30 to 60 URLs.
My Wix site returns 404 at /llms.txt. What is wrong?
Wix only publishes the file on an upgraded site with a connected custom domain and search engine indexing switched on. Check the indexing toggle first, under SEO & GEO > Tools and settings > SEO Settings, because a site hidden during a rebuild is the usual cause.
I edited my Wix llms.txt and pages I published since are missing. Why?
Editing the file stops automatic updates, so your version is frozen at the moment you saved it. Use More Actions > Reset to Default to restore the generated file, after copying out any wording you want to keep.
What is NLWeb on Wix, and do I need it as well as llms.txt?
NLWeb is an open-source Microsoft framework Wix offers in the same Tools and settings list. It lets agents query your published content instead of only crawling it. It is separate from llms.txt, and AIScan check C2 grades the file only.
I installed Rank Math but /llms.txt returns 404 or an empty file. Why?
Rank Math ships llms.txt as a module that is off by default, and its knowledge base says the file stays empty until you configure it. Turn on the LLMS Txt module under Rank Math SEO > Dashboard, then pick at least one post type under General Settings > Edit llms.txt and save.
Yoast says my llms.txt file couldn't be auto-generated. What do I do?
Yoast's help article points at the web server's filesystem permissions: the plugin writes a real file and could not. Ask your host to make the web root writable by WordPress, or use a plugin route that serves the file from WordPress instead. Yoast's llms.txt is also not available on multisite.

About the author
M Asif Rahman
Entrepreneur, curious about AI
I have been building companies for a long time, and lately most of my curiosity goes to AI. AIScan is a small personal project I built on a flight from Dubai to Narita. I use it to understand how ready the web is for AI agents, and I share what the scans teach me.
Related guides
AI readiness setup guide by platform (2026)
Verified 17, 18, 20 and 22 October 2026. Updated on 22 October 2026. An AIready site needs six things: a robots.txt that names AI crawlers D1, B2, a sitemap D2, a declared feed E5, an llms.txt C2,…
Link Headers for AI Agent Discovery: Next.js, Astro, Vercel, Netlify, Cloudflare, WordPress
Updated on 26 November 2026: a new section for Shopify, Webflow, Framer and Wix, where the builder's CDN sends the header and you add head tags instead, measured on 889 sites. Updated on 15 November…
Add an RSS Feed AI Agents Can Actually Find
A feed that AI agents can find needs two things: a working RSS, Atom or JSON Feed file, and a <link rel="alternate" tag in your <head that points at it. Most platforms give you only one of the two.…
