On WordPress, publish llms.txt at the site root so https://yourdomain.com/llms.txt returns Markdown. That URL is not an HTML theme page and not a Media Library file under /wp-content/uploads/. As of 2026, WordPress.com can add the file in site settings. Self-hosted WordPress can use Yoast SEO, Rank Math, a dedicated plugin such as Website LLMs.txt, or a static upload next to wp-config.php / index.php. After any method, open /llms.txt and clear cache if you get a 404. llms.txt is an emerging community proposal from Answer.AI / fast.ai. It is not a proven citation boost.
What are the key takeaways?
The WordPress rule is one public URL: https://yourdomain.com/llms.txt must return Markdown. In 2026 that file is served by WordPress.com settings, Yoast SEO or Rank Math, the Website LLMs.txt plugin, or a document-root upload.
- The conventional URL is /llms.txt at the domain root. Optional llms-full.txt sits beside it.
- WordPress.com has a documented native path. Self-hosted sites pick a plugin or a document-root upload, not both, unless you have checked which one wins.
- A Media Library attachment is not a published root file. Those URLs live under /wp-content/uploads/.
- After a plugin enable, a 404 is often stale cache, not a missing file (WPBeginner).
- Generate a curated draft with the free generator. Human-review it before you ship.
- There is no public controlled evidence that WordPress + llms.txt increases ChatGPT, Perplexity, or Claude citations.
How do you add llms.txt on WordPress?
You add llms.txt by choosing one serving path so two plugins do not fight over /llms.txt. WordPress.com uses site settings. Self-hosted WordPress uses Yoast SEO, Rank Math, a dedicated plugin, or a static file next to index.php.
On WordPress.com, follow the official Add llms.txt to your site steps. The host places a plain-text Markdown file at the root of your domain. You do not FTP into public_html on that product.
If you already pay for a major SEO plugin, check its current docs before installing another generator. Yoast SEO documents an llms.txt feature. Rank Math exposes an llms.txt toggle in its settings — confirm the live URL after you save. SEOPress and AIOSEO may appear as integration targets for third-party generators; check each plugin’s changelog before you assume a built-in file.
If your SEO plugin does not emit root /llms.txt, a dedicated plugin can register the route. Website LLMs.txt lists integrations for Yoast SEO, Rank Math, SEOPress, and AIOSEO. LLMs.txt and LLMs-Full.txt Generator emits both the short map and llms-full.txt. Do not activate two generators at once — conflict behaviour is undocumented.
- 1Generate and review Markdown for llms.txt (and optionally llms-full.txt) with the free generator.
- 2Connect over FTP/SFTP or open the host file manager.
- 3Upload both files into the same directory as WordPress index.php — commonly public_html, www, or htdocs.
- 4Load https://yourdomain.com/llms.txt and confirm the response is the Markdown body, not a themed 404.
Where does the file go on a typical WordPress host?
The file goes in the web host document root, next to WordPress index.php. That folder is often named public_html, www, or htdocs. The llmstxt.org convention expects /llms.txt at the site root, not under /wp-content/.
The Media Library stores uploads under /wp-content/uploads/YYYY/MM/. You can attach a .txt file there. Crawlers looking for https://yourdomain.com/llms.txt will not find it unless you add a rewrite. Prefer the document root, a plugin route, or a rewrite that still exposes /llms.txt.
What if a plugin or host blocks the root file?
If the host blocks root writes, serve Markdown at /llms.txt with a plugin, a rewrite, or a host-support ticket. After plugin activation, a 404 is often stale cache, not a missing file.
- A small custom plugin or a maintained directory plugin that serves Markdown at /llms.txt.
- An Apache or Nginx rewrite that maps /llms.txt to a static file stored elsewhere.
- A ticket to host support asking them to place the file.
How do you keep a WordPress llms.txt map current?
You keep the map current by regenerating after major structure changes and reviewing at least quarterly. Curate evergreen money and docs pages. Do not dump every blog post.
Regenerate when you add product or docs sections, or when you remove flagship pages. See how often to update llms.txt.
A sitemap dump of every post is a directory, not a map. Some plugins generate from the XML sitemap. That output is a starting draft, not a finished file.
WordPress Multisite is per-site. Each domain or subdirectory that should advertise a map needs its own /llms.txt. A network-level file does not cover subsites.
What should you check besides the file?
llms.txt is a content map, not an access-control file. It does not replace robots.txt. It cannot unlock blocked or empty pages.
Confirm robots.txt does not block the AI bots you actually want. Confirm important URLs return crawlable HTML, not an empty client shell. Keep members-only or passworded URLs out of the map.
For measured crawlability and extractability after upload, use AEOForged. This site generates the content map only.
Frequently asked questions
Can I upload llms.txt through the WordPress Media Library?+
You can store a file there, but the conventional URL is /llms.txt at the site root. Media Library URLs live under /wp-content/uploads/. Prefer FTP or file-manager upload to the document root, a plugin route, or a rewrite that exposes /llms.txt.
Does a WordPress SEO plugin create llms.txt automatically?+
It depends on the plugin and the version. Yoast SEO documents a named feature. Rank Math has a settings toggle. SEOPress and AIOSEO may only appear via a third-party generator. Check current docs, then verify the live URL. If nothing emits root /llms.txt, upload static files or install one serving plugin.
Will llms.txt help my WordPress posts rank in ChatGPT?+
There is no public controlled evidence that publishing llms.txt increases AI citations on WordPress or anywhere else. Treat it as optional hygiene after access and content quality. It is not a ranking lever.
Is llms.txt the same as robots.txt?+
No. robots.txt is a crawl-access hint. llms.txt is a curated Markdown map of pages you consider important. Do not use llms.txt to grant or deny bot access.
What should the file contain?+
Follow the llmstxt.org shape: an H1 site name, a one-sentence description, H2 sections, and bullet links with short notes. Name the file exactly llms.txt. Optional llms-full.txt can hold longer excerpts.