{
    "title": "llms.txt answers with a web page or the wrong type",
    "description": "/llms.txt or /llms-full.txt answers with an HTML page, or is not served as UTF-8 text, so AI tools may get a web page instead of your file.",
    "url": "https://ursy.com/issues/llms-txt-served-wrongly/",
    "canonical": "https://ursy.com/issues/llms-txt-served-wrongly/",
    "markdown": "https://ursy.com/issues/llms-txt-served-wrongly/index.md",
    "json": "https://ursy.com/issues/llms-txt-served-wrongly/index.json",
    "published": "2026-11-29T21:57:23+00:00",
    "updated": "2026-11-30T12:53:03+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY.com",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY.com and link https://ursy.com/issues/llms-txt-served-wrongly/",
    "start_here": {
        "page": "https://ursy.com/issues/llms-txt-served-wrongly/",
        "markdown": "https://ursy.com/issues/llms-txt-served-wrongly/index.md",
        "json": "https://ursy.com/issues/llms-txt-served-wrongly/index.json",
        "cite": "Name URSY.com and link the page you used.",
        "doors": {
            "llms_txt": "https://ursy.com/llms.txt",
            "facts": "https://ursy.com/facts.json",
            "mcp": "https://ursy.com/mcp/",
            "openapi": "https://ursy.com/.well-known/openapi.json"
        }
    },
    "issue": {
        "slug": "llms-txt-served-wrongly",
        "problem": "llms.txt answers with a web page or the wrong type",
        "summary": "/llms.txt or /llms-full.txt answers with an HTML page, or is not served as UTF-8 text, so AI tools may get a web page instead of your file.",
        "status": "Live",
        "priority": "medium",
        "category": "ai-answers",
        "category_title": "AI answers and citations",
        "why_it_matters": [
            "Many sites send every unknown address to the home page, or to a not-found page with a 200 status. Then an AI tool that asks for /llms.txt gets a web page, and some tools may take that page as your llms.txt.",
            "A real file sent without a text content type, or one that is not valid UTF-8, has a similar problem: each tool must guess what it is, and some characters may be shown wrongly."
        ],
        "how_to_fix": [
            "Upload a real Markdown file at /llms.txt, saved as UTF-8 and served as text/plain or text/markdown with charset=utf-8. If you do not have one yet, make the address answer 404 rather than a web page. Do the same for the optional /llms-full.txt.",
            "Check it with the llms.txt Checker and Generator."
        ],
        "steps": [
            "Open /llms.txt and check that you see plain text, not a page.",
            "Upload a real file, or make the address answer 404.",
            "Check the content type and the encoding."
        ],
        "check_it_is_fixed": "Run the URSY.com llms.txt Checker and Generator (/llms-txt-checker/) again. It should get your Markdown file with a text content type, or a clean 404 if you have none yet.",
        "found_by": [
            {
                "tool": "llms-txt-checker",
                "name": "llms.txt Checker and Generator",
                "status": "Live",
                "page": "https://ursy.com/llms-txt-checker/",
                "card": "https://ursy.com/llms-txt-checker.json"
            }
        ],
        "full_record": "https://ursy.com/wp-json/ursy/v1/issues/llms-txt-served-wrongly",
        "source": {
            "url": "https://llmstxt.org/",
            "title": "llmstxt.org: The /llms.txt file"
        },
        "cite": "llms.txt answers with a web page or the wrong type. URSY.com. https://ursy.com/issues/llms-txt-served-wrongly/"
    },
    "headings": [
        {
            "level": 2,
            "text": "Why it matters",
            "id": "why-it-matters",
            "url": "https://ursy.com/issues/llms-txt-served-wrongly/#why-it-matters"
        },
        {
            "level": 2,
            "text": "How to fix it",
            "id": "how-to-fix-it",
            "url": "https://ursy.com/issues/llms-txt-served-wrongly/#how-to-fix-it"
        },
        {
            "level": 3,
            "text": "What the problem looks like",
            "id": "what-the-problem-looks-like",
            "url": "https://ursy.com/issues/llms-txt-served-wrongly/#what-the-problem-looks-like"
        },
        {
            "level": 3,
            "text": "What it looks like fixed",
            "id": "what-it-looks-like-fixed",
            "url": "https://ursy.com/issues/llms-txt-served-wrongly/#what-it-looks-like-fixed"
        },
        {
            "level": 2,
            "text": "Fix it with your AI assistant",
            "id": "fix-it-with-your-ai-assistant",
            "url": "https://ursy.com/issues/llms-txt-served-wrongly/#fix-it-with-your-ai-assistant"
        },
        {
            "level": 2,
            "text": "Fix it on your platform",
            "id": "fix-it-on-your-platform",
            "url": "https://ursy.com/issues/llms-txt-served-wrongly/#fix-it-on-your-platform"
        },
        {
            "level": 3,
            "text": "WordPress",
            "id": "wordpress",
            "url": "https://ursy.com/issues/llms-txt-served-wrongly/#wordpress"
        },
        {
            "level": 3,
            "text": "A hand-made site",
            "id": "a-hand-made-site",
            "url": "https://ursy.com/issues/llms-txt-served-wrongly/#a-hand-made-site"
        },
        {
            "level": 3,
            "text": "Your server or hosting",
            "id": "your-server-or-hosting",
            "url": "https://ursy.com/issues/llms-txt-served-wrongly/#your-server-or-hosting"
        },
        {
            "level": 2,
            "text": "Check it is fixed",
            "id": "check-it-is-fixed",
            "url": "https://ursy.com/issues/llms-txt-served-wrongly/#check-it-is-fixed"
        },
        {
            "level": 2,
            "text": "Official source",
            "id": "official-source",
            "url": "https://ursy.com/issues/llms-txt-served-wrongly/#official-source"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/issues/llms-txt-served-wrongly/#questions"
        },
        {
            "level": 3,
            "text": "text/plain or text/markdown?",
            "id": "text-plain-or-text-markdown",
            "url": "https://ursy.com/issues/llms-txt-served-wrongly/#text-plain-or-text-markdown"
        },
        {
            "level": 3,
            "text": "Is a 404 for llms.txt bad?",
            "id": "is-a-404-for-llms-txt-bad",
            "url": "https://ursy.com/issues/llms-txt-served-wrongly/#is-a-404-for-llms-txt-bad"
        }
    ],
    "links": [
        {
            "text": "HTML",
            "url": "https://ursy.com/wiki/html/",
            "internal": true
        },
        {
            "text": "llms.txt",
            "url": "https://ursy.com/wiki/llms-txt/",
            "internal": true
        },
        {
            "text": "ChatGPT",
            "url": "https://ursy.com/wiki/chatgpt/",
            "internal": true
        },
        {
            "text": "llmstxt.org: The /llms.txt file",
            "url": "https://llmstxt.org/",
            "internal": false
        }
    ],
    "words": 655,
    "text": "/llms.txt or /llms-full.txt answers with an HTML page, or is not served as UTF-8 text, so AI tools may get a web page instead of your file. Why it matters Many sites send every unknown address to the home page, or to a not-found page with a 200 status. Then an AI tool that asks for /llms.txt gets a web page, and some tools may take that page as your llms.txt. A real file sent without a text content type, or one that is not valid UTF-8, has a similar problem: each tool must guess what it is, and some characters may be shown wrongly. How to fix it Upload a real Markdown file at /llms.txt, saved as UTF-8 and served as text/plain or text/markdown with charset=utf-8. If you do not have one yet, make the address answer 404 rather than a web page. Do the same for the optional /llms-full.txt. Check it with the llms.txt Checker and Generator. Open /llms.txt and check that you see plain text, not a page. Upload a real file, or make the address answer 404. Check the content type and the encoding. What the problem looks like GET /llms.txt HTTP/1.1 Host: www.example.com HTTP/1.1 200 OK Content-Type: text/html; charset=UTF-8 <!DOCTYPE html> <html lang=\"en\"><head><title>Page not found | Example</title> A not found page sent with 200, so an AI tool may take this web page as your llms.txt. What it looks like fixed GET /llms.txt HTTP/1.1 Host: www.example.com HTTP/1.1 200 OK Content-Type: text/plain; charset=utf-8 # Example Ltd The real file, served as UTF-8 text. Before you have one, a plain 404 is better than a web page. Fix it with your AI assistant Paste this into ChatGPT, Claude, Gemini or your coding agent, and fill in the words in square brackets: My website [your website address] runs on [your platform, e.g. a Next.js site on nginx]. A check says /llms.txt or /llms-full.txt answers with an HTML page, or is not served as UTF-8 text. First fetch [your website address]/llms.txt and /llms-full.txt and show me the status, the Content-Type header and the first lines of each (or ask me to paste them). Tell me in plain words what is happening, for example a catch-all that answers with a page and 200. Then give me the fix: serve a real UTF-8 Markdown file as text/plain or text/markdown with charset=utf-8, through an exact rule before any catch-all, or a 404 if I have no file yet. Rules: back up first, do not change other addresses or my llms.txt content, and keep the catch-all for everything else. Give me exact lines and where they go. Finally, tell me to re-check with the URSY.com llms.txt Checker and Generator at ursy.com/llms-txt-checker/. Fix it on your platform WordPress Make sure a real llms.txt file sits in the site root, or that your plugin really serves it. Check no plugin answers unknown addresses with a page and 200. A hand-made site On hosts that send every address to index.html, put the real llms.txt file in the published folder so it is served first. Your server or hosting Add exact rules for /llms.txt and /llms-full.txt above any catch-all rewrite, with default_type text/plain in nginx or AddType in Apache, and charset utf-8. Check it is fixed Run the URSY.com llms.txt Checker and Generator (/llms-txt-checker/) again. It should get your Markdown file with a text content type, or a clean 404 if you have none yet. Official source llmstxt.org: The /llms.txt file Questions text/plain or text/markdown? Either works for most tools. Add charset=utf-8 to whichever you choose. Is a 404 for llms.txt bad? No. It honestly says you have no file. A web page sent with 200 is the real problem.",
    "source": "https://ursy.com/issues/llms-txt-served-wrongly/"
}