llms.txt returns 200: why tools still cannot read it
Troubleshoot the four common reasons AI tools cannot read the content although the status of the deployed llms.txt is normal: an SPA page is returned, redirect chains, a wrong Content-Type, and broken links.
About 3 min readError codes covered: HTTP_STATUSSPA_DETECTEDTOO_MANY_REDIRECTSDNS_ERROR
These are the four most common kinds of problems in llmstxtdb check reports. This guide gives troubleshooting steps for each error code; after fixing, go back to the online check to verify.
HTTP_STATUS: the file is not actually where you put it
The report shows HTTP 404 or 404 (after 1 redirect): llms.txt is not at the address you are looking at. A common cause is that the site 301s the root path to another domain while the file exists only on the old domain.
- Open
https://your-domain/llms.txtdirectly in a browser (and note the final address). - Check the redirectChain in the report: which origin the file actually lands on.
- When the site has documentation under a
/docssubpath, the proposal allows the file to live at the subpath, but the root path file is still the most universal discovery location.
SPA_DETECTED: a front-end page came back, not a document
The report shows SPA_DETECTED: FAIL, with “SPA mount point” or “bundle script” in the evidence: your web server falls back to index.html for every unknown path, so the request for llms.txt got an HTML application shell.
- Confirm the file is really deployed on the server (
curl -I https://your-domain/llms.txtand look at the Content-Type). - The SPA’s routing fallback rule swallowed llms.txt: exclude
.txtfrom the fallback rule. - On static hosting platforms (Vercel / Netlify), check the priority of the
public/directory against the rewrites configuration.
TOO_MANY_REDIRECTS: a redirect chain longer than 3 hops
We follow at most 3 redirects. A chain that is too long is usually a series of http→https→www→alternate domain jumps.
- Look at the complete redirectChain in the evidence of the report and cut the intermediate hops.
- The goal: a single 301 straight to the final address.
DNS_ERROR: the domain does not resolve
DNS resolution failed (the domain does not exist): a link in the report points to a domain that does not exist. We resolve relative links in llms.txt to absolute URLs against the address of the file, so a link written with the wrong domain shows up here.
Test environment and results
Environment: Node v24.18.0, the llmstxtdb check engine connected directly to a local test server (an isolated 127.0.0.1 environment), tested on 2026-10-05:
-
A normal file with
text/plain; charset=utf-8→spec=PASS,status=200, type observationCONTENT_TYPE=PASS. -
The same HTML shell returned as
text/html→usable FAIL=[CONTENT_TYPE, SPA_DETECTED], and the proposal conclusion FAILs as well because there is no H1. -
The HTML shell returned as
text/plaininstead (faking only the type) → still triggersSPA_DETECTED FAIL(a joint judgment with body sniffing). -
llms.txt → /hop1 → final address, two 301 hops → followed successfully; the size and type observations are taken from the final address. -
Fix the domain of the corresponding entry in the document.
-
This kind is a definite failure and does not recover with network fluctuations.
Next steps
- After fixing, verify with the online check.
- For what we commit to and what we do not, see about this site.