Suggestions
LLMs.txt Lab logo LLMs.txt Lab

llms.txt Tutorial

How to Add llms.txt in WordPress and Hostinger

A practical tutorial for uploading your finished llms.txt file to WordPress, Hostinger, cPanel or a public_html root folder.

Short Answer

To add llms.txt in WordPress or Hostinger, create the file, validate it, upload it to the public root folder, and confirm it loads at https://yourdomain.com/llms.txt.

On many Hostinger and cPanel sites, the public root is public_html. On WordPress, it is usually the folder that contains wp-config.php, wp-content, wp-admin and wp-includes.

Before You Upload

First, create your file with the free llms.txt generator. Then check it with the llms.txt Validator. Your final file should be named exactly llms.txt.

  • Use lowercase: llms.txt.
  • Avoid names like llms.txt.txt, llms-final.txt or llms.md.
  • Make sure important links use full URLs or valid site paths.
  • Remove private pages, draft URLs and old staging links.

How to Add llms.txt in WordPress

Adding an llms.txt file to WordPress helps AI systems find the most important pages on your site. The safest method is to upload the file through your hosting file manager or FTP, because WordPress itself does not always provide root-file editing by default.

  1. Generate your file with the llms.txt generator and download it.
  2. Log in to your hosting account, cPanel, FTP client or file manager plugin.
  3. Find your WordPress root folder. It usually contains wp-config.php, wp-content, wp-admin and wp-includes.
  4. Upload llms.txt into that same root folder.
  5. Open https://yourdomain.com/llms.txt in your browser.
  6. If it does not load, clear cache and confirm the file was uploaded to the correct domain folder.

How to Add llms.txt in Hostinger

For Hostinger sites, upload the file through hPanel File Manager. Most standard Hostinger websites use public_html as the public root folder, but subdomains and framework apps may use a different folder.

  1. Download your finished llms.txt file.
  2. Log in to Hostinger and open hPanel.
  3. Select the website you want to update and click Manage.
  4. Open File Manager.
  5. Go to public_html for a normal website, or the public folder configured for your app.
  6. Upload llms.txt.
  7. Visit https://yourdomain.com/llms.txt and confirm the content appears.

How to Add llms.txt With cPanel or FTP

The same idea applies to cPanel, FTP and most shared hosting accounts. You upload the file to the folder that maps to your public domain.

  1. Open File Manager or connect through FTP/SFTP.
  2. Find the public root folder for the domain.
  3. Upload llms.txt.
  4. Set normal readable file permissions if needed, commonly 644.
  5. Test the public URL in a private browser window.

Where Should the File Go?

The recommended location is the site root. If your site is https://example.com, your file should be available at https://example.com/llms.txt.

If your site lives on a subdomain such as docs.example.com, and that subdomain is the documentation site you want AI agents to understand, publish the file at https://docs.example.com/llms.txt.

Final Checks After Uploading

After uploading, do not assume everything worked. Test the public URL and check the live file.

  • Open the URL in a browser and confirm the file loads as plain text.
  • Check that the file is not blocked by authentication.
  • Confirm important links are public and crawlable.
  • Make sure your server is not redirecting /llms.txt to the homepage.
  • Run the live file through the validator if you make changes later.

Common Upload Problems

  • 404 error: the file is missing or uploaded to the wrong folder.
  • Homepage loads instead: a rewrite rule may be catching the request.
  • Download prompt appears: this is usually fine for a text file, but plain browser display is easier to inspect.
  • Old content appears: clear cache or CDN cache and reload.
  • Permission error: check file permissions and hosting security rules.

Frequently Asked Questions

How do I add llms.txt in WordPress?
Upload llms.txt to the WordPress root folder, usually the folder containing wp-config.php, then check /llms.txt in your browser.
How do I add llms.txt in Hostinger?
Open Hostinger hPanel, go to File Manager, open public_html, upload llms.txt, and confirm it loads at the root URL.
Should llms.txt go in public_html?
For many Hostinger, cPanel and static PHP sites, yes. The goal is for the file to load publicly at https://yourdomain.com/llms.txt.
Do I need to update sitemap.xml after adding llms.txt?
It is not required, but you can link to /llms.txt from developer or documentation pages if useful.
What if /llms.txt returns 404 after upload?
Check that the file was uploaded to the correct public root folder for the domain and that the filename is exactly llms.txt.