How to Configure and Setup llms.txt on WordPress: Step-by-Step Guide
Quick Summary: A straightforward, no-nonsense guide for WordPress users. Learn how to place an llms.txt file at the root of your WordPress site in three simple ways: cPanel File Manager, FTP, or a dedicated plugin. No coding needed – just follow the steps and help AI search engines understand your content.
1. What Is llms.txt and Why Does It Matter for WordPress?
If you manage a WordPress site and you want AI tools like ChatGPT, Claude, or Perplexity to understand your best content, an llms.txt file gives them a clear, curated map to follow. Think of it as a polite signpost you place at the front door of your site. Instead of making AI crawlers guess which pages matter, you tell them directly.
The file lives at the very root of your domain — the same level as robots.txt — and is written in simple plain-text Markdown. It lists your most important URLs along with short titles and descriptions. No fancy code, no database edits. Just a text file in the right folder. You can learn more about the official specification at llmstxt.org, which is the canonical reference maintained by the standard's creators.
WordPress sites can be complex. Categories, tags, archive pages, and plugin-generated content all create noise that AI systems can misread. An llms.txt file cuts through that noise by pointing directly to what matters. If you want a deeper look at the standard itself, check the Beginner's Guide to llms.txt before diving into the setup steps below.
Tip: WordPress core does not generate an llms.txt file automatically. You need to create and upload one yourself, or use a plugin to handle it for you. Both approaches take less than ten minutes.
2. Step 1 – Create Your llms.txt File
Option A – Use the llms.txt Generator (Recommended for Beginners)
The fastest way to create a properly formatted file is to use the free llms.txt Generator tool. Open the tool, enter your site name, a short description of what your site covers, and then add the URLs of your most important pages — your homepage, core service pages, key blog posts, and contact page. The generator formats everything correctly and lets you download a ready-to-use llms.txt file in seconds.
You do not need to write any code. The generator follows the correct Markdown structure: a top-level heading with your site name, a blockquote summary, and organized sections with labeled links. If you want to understand the exact format rules before generating, the How to Create and Format an llms.txt File guide explains every line in plain language.
Option B – Write It Manually in a Text Editor
If you prefer full control, open Notepad (Windows) or TextEdit (Mac) and write the file from scratch. Start with a # heading (your site name), add a > blockquote for a one-sentence site description, then use ## headings to group your pages into sections like Articles, Services, or About. Under each heading, list your links using the Markdown format: - [Page Title](https://yourdomain.com/page). Save the file as plain text and name it exactly llms.txt — lowercase, no spaces, no other extension.
Tip: Keep the file short and focused. List the pages that best explain your site — not every page you own. A lean, well-structured file is far more useful to AI crawlers than a bloated one.
Once your file is ready and saved on your computer, move on to uploading it. There are three ways to do this on a WordPress site: cPanel File Manager, FTP, or a plugin. Pick whichever matches your comfort level.
3. Step 2 – Upload via cPanel File Manager
cPanel is the control panel most shared hosting providers offer (SiteGround, Bluehost, Hostinger, A2 Hosting, and many others). This method requires no extra software and is the most straightforward option for beginners.
- Log in to cPanel. Go to your hosting provider's dashboard and open cPanel. Look for the "Files" section and click File Manager.
- Navigate to the root folder. In the left directory tree, find and click on the
public_htmlfolder. This is your WordPress root — the folder that containswp-config.php,wp-content,.htaccess, andindex.php. If you see those files, you are in the right place. - Upload your file. Click the Upload button at the top of the File Manager. Select your
llms.txtfile from your computer and wait for the upload to complete. The file will appear in thepublic_htmldirectory alongside your other WordPress files. - Confirm the placement. Double-check that
llms.txtsits at the same level asrobots.txt— not inside any subfolder likewp-contentor a theme folder.
Tip: Some hosts label the root folder www or htdocs instead of public_html. The correct folder is always the one containing wp-config.php.
4. Step 3 – Upload via FTP (FileZilla)
If your hosting panel does not include a File Manager, or if you simply prefer a desktop application, FTP (File Transfer Protocol) is a reliable alternative. FileZilla is a free, beginner-friendly FTP client available for Windows, Mac, and Linux. Download it from the official FileZilla website before starting.
- Get your FTP credentials. Log in to your hosting account and find your FTP details — usually listed under "FTP Accounts" or "FTP Manager." You need the host (usually your domain name or an IP address), your FTP username, password, and port (almost always port 21).
- Connect with FileZilla. Open FileZilla, enter your credentials in the Quick Connect bar at the top, and click Quickconnect. FileZilla will establish a connection to your server.
- Navigate to the root directory. In the right-hand panel (your server's files), navigate to
/public_html/— this is the WordPress root directory. You will seewp-config.php,.htaccess, androbots.txthere. - Upload the file. In the left-hand panel (your local computer files), find your
llms.txtfile. Drag and drop it into the right-hand panel, or right-click and choose Upload. The transfer takes only a few seconds. - Set file permissions if needed. Right-click the uploaded
llms.txtfile, choose File Permissions, and set the value to 644. This means the server can read the file and serve it publicly, which is exactly what you want.
Tip: Not sure whether you need FTP or cPanel? If you pay a separate hosting company (SiteGround, Bluehost, etc.) in addition to any WordPress costs, you are self-hosted and can use either method. WordPress.com free/basic plans do not give file-system access, so the plugin method in Step 4 is your best route.
5. Step 4 – Use a WordPress Plugin Instead
If you would rather stay entirely inside the WordPress dashboard — no cPanel, no FTP — several plugins handle llms.txt generation and management automatically. This is the easiest approach for anyone who is not comfortable with hosting panels or FTP clients.
Option A – Website LLMs.txt Plugin
The Website LLMs.txt plugin (available free on WordPress.org) is currently one of the most active options, with over 40,000 installations. After you activate it, go to Settings → LLMs.txt to choose which post types to include and how often the file should update. You can set the update frequency to immediate, daily, or weekly. The plugin automatically excludes any pages marked as noindex in Yoast SEO, Rank Math, SEOPress, or AIOSEO — so your AI file stays clean and consistent with your existing SEO settings. Click Generate Now at any time to rebuild the file from scratch.
Option B – Rank Math SEO (Built-In Module)
If you already use Rank Math, you do not need a separate plugin. Rank Math includes a built-in llms.txt module. Go to Rank Math SEO → Dashboard, scroll down to find the LLMS Txt module, and toggle it on. Then visit Rank Math SEO → General Settings → Edit llms.txt to choose which post types to include, add taxonomy links, and set a description. Rank Math lists each item's title, URL, and a short intro text, and content set to noindex is excluded automatically.
Option C – Yoast SEO (Built-In Feature)
Yoast SEO also now includes native llms.txt support. Log in to your WordPress dashboard, go to Yoast SEO → Settings, open the Site Features section, and scroll to the AI tools area. Find the LLMS.txt toggle and switch it on. Click Save changes and Yoast will generate and serve the file automatically. The feature is available in both the free and premium versions of Yoast.
Option D – WP File Manager Plugin (Manual Upload via Dashboard)
If you created your file manually but still want to upload it without leaving WordPress, install the WP File Manager plugin. Go to Plugins → Add New, search for "WP File Manager," install and activate it. Open it from the sidebar, navigate to the root directory inside the file manager interface, and upload your llms.txt file there. This gives you File Manager functionality directly inside wp-admin — no cPanel login required.
Tip: The plugin method is the most beginner-friendly because updates happen automatically whenever you publish new content. The manual cPanel or FTP method gives you more precise control over exactly what goes into the file.
6. Step 5 – Verify the File Is Live
Regardless of which upload method you used, always verify the file is accessible before considering the job done. Open a fresh browser tab and go to https://yourdomain.com/llms.txt (replace with your actual domain). You should see the plain text content of your file displayed directly in the browser — no WordPress theme, no styled page, just raw text.
If the file loads correctly, you are done. AI crawlers like GPTBot, ClaudeBot, and PerplexityBot will be able to find and read it. If something looks wrong, move on to the troubleshooting section below. The whole setup — from generating the file to seeing it live — should take you no more than ten to fifteen minutes.
7. Troubleshooting Common Problems
| Problem | Likely Cause | Fix |
|---|---|---|
404 error when visiting /llms.txt |
File uploaded to wrong folder | Move the file to public_html/ — the folder containing wp-config.php |
| WordPress theme loads instead of plain text | WordPress permalink rules intercepting the request | Add RewriteRule ^llms\.txt$ - [L] above the WordPress rules in your .htaccess file |
| File shows as garbled or binary text | File not saved as plain text (.txt) |
Re-save the file using Notepad or TextEdit in plain text mode, not rich text |
| Plugin generates file but URL returns 404 | Read-only hosting environment | Flush permalinks at Settings → Permalinks → Save Changes |
| File name wrong capitalisation | File named LLMS.txt or Llms.txt |
Rename to exactly llms.txt — all lowercase, no spaces |
One more thing worth knowing: if your site is on a read-only hosting environment (such as WordPress VIP or certain managed hosts), you cannot write a physical file to the root directory. Good llms.txt plugins handle this with fallback logic — they serve the file virtually through WordPress rewrite rules, so it remains accessible at yourdomain.com/llms.txt even without a physical file on disk.
8. Which Method Should You Choose?
Here is a quick decision guide. If you want full manual control over every line of content in the file and you are comfortable logging into cPanel or using FileZilla, go with the cPanel or FTP method. It is lightweight, requires no extra plugins, and the file stays exactly as you wrote it.
If you publish frequently and want the file to stay updated automatically — without repeating the upload process every time you add new content — use a plugin. Rank Math and Yoast SEO both have this built in as of 2026, so if you already use either of those, enabling the feature takes less than a minute. The standalone Website LLMs.txt plugin is an excellent choice if you use a different SEO plugin or want dedicated control over update frequency and post-type selection.
For a side-by-side comparison of how llms.txt compares to the files you already have — robots.txt and XML sitemaps — take a look at our guide on llms.txt vs. robots.txt vs. XML Sitemaps. Understanding how these three files work together helps you avoid any accidental overlap or conflict.
Tip: Whichever method you choose, revisit your llms.txt file every few months. If you launch a major new section of content, add those URLs. Keeping the file current ensures AI tools continue to surface your most relevant pages.
FAQ
How do I upload a text file to my WordPress root directory?
Log in to your hosting account and open cPanel's File Manager. Navigate to the public_html folder — this is your WordPress root, containing files like wp-config.php and .htaccess. Click the Upload button, select your llms.txt file from your computer, and wait for it to finish uploading. Alternatively, use an FTP client like FileZilla: connect to your server, navigate to public_html/, and drag the file across. Either way, verify the upload by visiting yourdomain.com/llms.txt in your browser. You should see the plain text content of the file displayed directly on screen.
Is there a WordPress plugin for AI SEO?
Yes, and the options have grown significantly in 2026. Rank Math SEO now includes a built-in llms.txt module — go to Rank Math → Dashboard, enable the LLMS Txt module, then configure it under General Settings. Yoast SEO has also added native llms.txt support under Settings → Site Features → AI tools. Both free and premium versions of Yoast include this feature. If you prefer a standalone plugin, the Website LLMs.txt plugin (40,000+ installs) automatically generates and updates your file on a schedule, integrating with Yoast, Rank Math, SEOPress, and AIOSEO to honour noindex settings. No coding is required for any of these options.
⚡ Explore More Free Tools