The simplest way to add llms.txt to WordPress is to enable it in the SEO plugin you already use: Rank Math, Yoast SEO or All in One SEO (AIOSEO). You can also write the file yourself and upload it to the site root with a file manager or FTP. Use only one method, then purge the cache and open /llms.txt: it should return HTTP 200 as plain text, not a redirect or a theme page.

What llms.txt is
llms.txt is a Markdown file at the root of a website that summarises the site and links to its key pages for AI assistants and agents. It was proposed on llmstxt.org and is optional; Google does not use it for Search or AI Overviews. For the file structure, the evidence and a five-step writing guide, see What is llms.txt and how to create one.
Which WordPress plugin should you use for llms.txt?
Use the SEO plugin you already run. Rank Math, Yoast SEO and AIOSEO can all generate llms.txt in their free versions, so you do not need a separate plugin. Running two generators at once is a common cause of conflicts: a physical file in the site root usually takes priority over a plugin that builds the file on request.
| Plugin | Where to enable it | What you can control |
|---|---|---|
| Rank Math | Rank Math SEO → Dashboard → LLMS Txt module, then General Settings → Edit llms.txt | Post types, taxonomies, a posts/terms limit (default 100) and additional content. The file stays empty until you configure it and save. Noindex posts are left out. |
| Yoast SEO | Yoast SEO → Settings → Site features → AI tools → llms.txt | Automatic selection or manual page selection. By default Yoast includes the 5 most recently updated posts, pages and custom post types (published in the last 12 months), with priority to cornerstone content. The file is written to the site root and updated weekly. The feature is not available on multisite. |
| AIOSEO | All in One SEO → Sitemaps → LLMs.txt | Title, description, post types, taxonomies, exclusions and an optional llms-full.txt file. AIOSEO's documentation (updated 14 August 2026) says the feature is enabled by default; check the tab and turn it off if you do not want the file. |
The details above come from each plugin's official documentation, as checked on 23 November 2026. Menu labels can change between versions; if a screen looks different, update the plugin first.
How to add llms.txt with Rank Math
In Rank Math you turn on the LLMS Txt module, choose what to include, save, then preview the live file. This is the method we use on silver-comp.com.
- Go to Rank Math SEO → Dashboard and enable the LLMS Txt module. If you do not see it, update Rank Math and, if needed, switch the dashboard to Advanced Mode.
- Open the module's settings icon, or go to Rank Math SEO → General Settings → Edit llms.txt.
- Select the post types you want listed (for example Posts and Pages). Rank Math adds each item's title, URL and a short description from the intro text. Posts set to noindex are excluded.
- Add taxonomies only if category or tag archives are useful for an agent. Set the posts/terms limit (the default is 100) and, if you want, add extra lines in Additional Content: a short company summary or links the automatic list misses.
- Click Save Changes, then use the preview link at the top of the Edit llms.txt tab, or open
https://yoursite.com/llms.txt.
On our site we selected the main post types, left taxonomies off, kept the default limit of 100 and added a short extra summary. After saving, the file did not appear correctly until we purged server cache and WP Rocket. Our live file is at silver-comp.com/llms.txt.
How to add llms.txt with Yoast SEO
Yoast SEO can generate llms.txt in the free plugin. You enable it under Site features, save, then optionally switch from automatic selection to a manual list of pages.
- Go to Yoast SEO → Settings → Site features.
- Under AI tools, find llms.txt and turn the toggle on (purple with a checkmark), then click Save changes.
- To choose pages yourself, open Customize llms.txt file, select Manual page selection, add the pages and save again.
- Open
https://yoursite.com/llms.txtand read the file. Yoast writes a physical file in the site root and refreshes it weekly with a scheduled action.
If Yoast says the file could not be auto-generated, check that the web server can write to the site root and that no old llms.txt is already there: Yoast does not overwrite an existing file, so you must remove it first. The feature is not available on WordPress multisite. If you cannot find the setting, update Yoast SEO and confirm you have administrator rights.
How to add llms.txt with All in One SEO
In AIOSEO the llms.txt settings live under Sitemaps. According to AIOSEO's documentation, updated 14 August 2026, the feature is enabled by default, so start by checking whether a file is already being served.
- Go to All in One SEO → Sitemaps and open the LLMs.txt tab.
- Confirm the file is enabled, or disable it if you do not want it. Use Open llms.txt to view the live file.
- Set the title and description (they default to your site title and tagline), choose post types and taxonomies, and set a limit for URLs per post type or taxonomy. Exclude any posts, pages or terms that should not appear.
- Optionally enable llms-full.txt. After you save, wait for the file to finish generating before opening it; the button stays grayed out while it is being built. There is also an option to convert posts to Markdown.
llms-full.txt is a companion file with fuller page text. Most business sites only need the short llms.txt index. Review whichever file you enable, the same as with the other plugins.
How to upload llms.txt manually in WordPress
If you are not using an SEO plugin, or you want a fully curated file, write llms.txt in Markdown and upload it to the WordPress root: the same folder as wp-config.php and wp-content, not the media library or wp-content/uploads.
- Create a UTF-8 text file named exactly
llms.txt(notllms.txt.txtorLLMS.TXT). Follow the block order on llmstxt.org: an H1 with the site name, a short summary, then lists of key pages with notes. - Upload it with your host's file manager or with FTP/SFTP.
- Disable any plugin llms.txt feature first. A physical file in the root usually wins over a dynamically generated one, and Yoast will refuse to auto-generate if a file is already there.
- Open the live URL and, when pages change, edit the file by hand and upload it again.
If you want a draft before you upload anything, use our free llms.txt generator and checker. Read and edit the draft, then place the finished file in the site root.
Why /llms.txt may show old content or a redirect
A cache layer often keeps serving an old response, a 404 or a redirect after you enable the file. Purge the hosting server cache and your WordPress cache plugin, then check the URL again.
On silver-comp.com we use server cache and WP Rocket together. After we enabled Rank Math's LLMS Txt module and saved the settings, the new file was visible only after both caches were purged. In our case the file was sent with a Cache-Control max-age of 30 days, so a stale response can last if you do not clear the cache. After the purge, silver-comp.com/llms.txt returned HTTP 200 and Content-Type: text/plain, with no redirect.
A noindex robots tag on the file is normal. Our file is served with x-robots-tag: noindex, nofollow. That tells search engines not to index the file itself; it is not a sign that the setup failed.
How to check that llms.txt works
The check takes a few minutes: the URL must stay /llms.txt, the body must be the text you expect, and the links must work.

- Open
https://yoursite.com/llms.txt. The status should be HTTP 200, not 404. - The browser should show plain text, not a themed page. The
Content-Typeis oftentext/plain. - The URL must not redirect to the homepage or another path. A redirect means the file is not being served.
- If you still see an old body or a redirect, purge the host cache and WP Rocket (or another cache plugin) and try again in a private window.
- Click the links in the file. Notes should match what those pages actually say. Remove thank-you, login or other utility pages if a plugin added them.
- Keep only one source: one plugin or one manual file.
The llmstxt.org spec also suggests a simple test: give an AI assistant only your llms.txt and ask questions about the business. If the answers are off, rewrite the notes.
Silver Company llms.txt generator
Not sure what the draft should contain, or want to validate a file before you upload it? Use our free llms.txt generator and checker. It does not replace a review of the live /llms.txt URL on your site.
Frequently asked questions
How do I add llms.txt to WordPress?
Enable llms.txt in Rank Math, Yoast SEO or AIOSEO, or upload a UTF-8 file named llms.txt to the WordPress root (the folder that contains wp-config.php). Use only one method, purge the cache and check that /llms.txt returns HTTP 200 as plain text, without a redirect.
Does Yoast SEO free include llms.txt?
Yes. Yoast's documentation says the feature is included for free. You turn it on under Yoast SEO → Settings → Site features → AI tools. It is not available on multisite.
How often does Yoast update llms.txt?
Weekly, through a scheduled action, according to Yoast's functional specification. After important content changes, open the file and check it; do not wait a week if a listed page has been removed.
Can I use two llms.txt plugins at the same time?
It is better not to. A physical file in the site root usually wins over a dynamically generated one, and Yoast will not overwrite an existing llms.txt. Pick one plugin or a manual file and disable the others.
Does llms.txt help SEO?
Not for Google. Google's documentation says no special AI text files are needed for AI Overviews or AI Mode. The file may help AI agents that choose to read it. The format and the evidence are covered in What is llms.txt and how to create one.
Why is Rank Math's llms.txt empty?
Rank Math's knowledge base says the file is empty until you configure it. Select post types, save changes, then preview the URL. If it is still empty or outdated, purge the server cache and your cache plugin.

