How to add llms.txt to WordPress
WordPress doesn't ship an llms.txt feature, but the file is just static text that has to live at your site root (https://yoursite.com/llms.txt). Here are the three reliable ways to put it there — pick the one that matches your hosting.
First, generate the file. Paste your WordPress URL and get a spec-compliant llms.txt built from your real pages — free, no signup.
Generate my llms.txt →Method 1 — Host file manager (easiest)
- Open your host's control panel (cPanel, Plesk, SiteGround, Hostinger, etc.) and launch the File Manager.
- Go to the WordPress root — usually
public_html/(the folder containingwp-config.php). - Upload your
llms.txtfile there. - Visit
yoursite.com/llms.txtto confirm it loads.
Method 2 — FTP / SFTP
Connect with FileZilla or Cyberduck using the SFTP credentials from your host, navigate to the site root (the directory with wp-config.php), and drag llms.txt into it. Same result as the file manager, handy if you already deploy this way.
Method 3 — Plugin (no server access)
On managed hosts (WordPress.com Business, some WP Engine plans) you may not have file access. A dedicated "llms.txt" plugin can serve the file virtually at the root. Paste in the content you generated, save, and it answers requests to /llms.txt without touching the filesystem. Trade-off: the plugin must stay active, and you re-paste content yourself when it changes.
Common mistakes
- Wrong location — putting it in a theme folder or
/wp-content/. It must resolve at the bare root. - Wrong MIME type — some setups serve
.txtas a download. It should returntext/plaininline. - Caching — a CDN or page-cache plugin may serve a stale 404. Purge cache after uploading.
- Relative links — use full
https://URLs inside the file, not/pagepaths.
Skip the hand-writing — generate llms.txt and llms-full.txt from your WordPress URL, edit, then upload.
Try the free llms.txt generator →Related: How to create llms.txt · llms.txt for Shopify · llms.txt examples · vs robots.txt