What WordPress does today
WordPress core does not create llms.txt. On 2026-10-19 we requested /llms.txt on several WordPress sites that have no file, including a WordPress.com-hosted blog and a news section of wordpress.org. Each returned the theme's HTML 404 page, which fails the check. The root llms.txt files on wordpress.org and wordpress.com are hand-made by their teams.
A static file in the site root still works. The standard Apache rules in WordPress's documentation send a request to index.php only when no real file matches (RewriteCond %{REQUEST_FILENAME} !-f). The documented nginx setup does the same with try_files $uri $uri/ /index.php?$args. A real llms.txt is served before WordPress runs.
Add or customize llms.txt on WordPress
Pick one method. Two sources for the same path conflict.
Self-hosted: upload a file
- Write
llms.txtin a text editor. Use an# H1title, a>summary and##sections of absolute links, as the llms.txt proposal describes. - Connect with your host's file manager or an SFTP client. WordPress's documentation recommends SFTP or FTPS over plain FTP.
- Open the domain's web (document) root. This is usually the folder that holds
wp-config.php. If WordPress is installed in a subdirectory but serves your site from the domain root, use the domain's root, not the subdirectory. WordPress documents this setup under "Giving WordPress Its Own Directory". Confirm the folder with your host if unsure. - Upload the file as
llms.txt, all lowercase.
Self-hosted: use an SEO plugin
These steps come from each plugin vendor's own documentation, not from WordPress.
- Yoast SEO: go to Yoast SEO > Settings > Site features. Under AI tools, switch on llms.txt and click Save changes. Yoast writes a real file to your root and updates it weekly. It does not overwrite an existing file. Yoast says llms.txt is not available for multisite.
- Rank Math: go to Rank Math SEO > Dashboard and switch on the LLMS Txt module. Then open Rank Math SEO > General Settings > Edit llms.txt. Rank Math says the file is empty until you configure it.
- All in One SEO: go to All in One SEO > Sitemaps > LLMs.txt. AIOSEO says the feature is enabled by default, so check whether you already serve a file.
WordPress.com
WordPress.com's own llms.txt guide covers Business and Commerce plans. Create SFTP credentials under Hosting Dashboard > Settings > SFTP/SSH, then add llms.txt to the htdocs folder. The guide also says plugins like Yoast SEO and Rank Math can deploy the file. Plugins install on all paid plans (Personal and up). SFTP needs Business or Commerce. We could not verify from WordPress.com's documentation that a plugin-generated file works on Personal or Premium. We found no documented route for free sites.
Check that it works
Run curl -sI https://yoursite.com/llms.txt. You want status 200 and a text/plain or text/markdown content type. Your web server sets the content type for a static file. A 404 with text/html means WordPress rendered its 404 page, so no file or plugin output exists at that path.
Then paste the file into the llms.txt validator. The llms.txt exists check passes once the URL returns a non-HTML 200.
Limits and workarounds
- Plugin output is generated. Rank Math lists the post types you choose, and you can preview the file. Review the result and keep it short. A few key pages serve a reader better than every recent post.
- Plugin conflicts. Yoast says its physical file takes priority over a plugin that serves
llms.txtdynamically. Run one tool only. - Redirects. We found no WordPress document on redirecting
/llms.txt. The audit follows redirects (up to 20), but other readers may not, and the proposal expects the file at/llms.txt. Prefer a real file. - Reach. WordPress.com's guide says "not all AI systems use llms.txt yet". It mostly helps coding agents and tools that fetch documentation, not Google or chat-assistant visibility.