What is the llms.txt file and how do I set it up?

Table of contents

Simple definition of the llms.txt file

llms.txt is a file placed at the root of a site that provides a IA-friendly version“ the essentials of a site: entry points, key pages, documentation and links to Markdown resources. The idea is to help LLMs find useful information quickly. without going through the entire layout HTML.

llms txt file

What does it actually do?

An llms.txt can be used for :

  • indicate where to find the documentation or the “source of truth” pages”
  • point to a Markdown version of important pages (guides, APIs, FAQ)
  • give a structured summary of the site, readable by an AI and by a human being

Important information: it is not a blocking mechanism as robots.txt. This is a guidance file. Its adoption varies according to the tools and platforms.

Format (expected structure)

The proposed standard is based on a text file in a format similar to Markdown, with sections and links to useful resources. Variants exist, such as llms-full.txt (more exhaustive version) depending on certain generators/tools.

Minimum example (to be adapted)

How to set it up

Option 1 - Manual method (universal)

  1. Creates a file named llms.txt
  2. Put it in the root of the site (often public_html/ or the web root folder)
  3. Check access : https://tonsite.com/llms.txt

This is exactly how the standard works: a file with the URL /llms.txt.

Option 2 - On WordPress (practical)

  • Via FTP / SFTP or the host's file manager: you add llms.txt to the WordPress root (where the wp-config.php, wp-content, etc.).

Option 3 - If you are with Hostinger (integrated tool)

Hostinger indicates a WordPress option : Hostinger → Tools → LLM Optimization → “Create LLMs.txt file” (immediate activation).

Useful best practices

  • Highlight the pages that explain the best your activity (not all pages)
  • Adds links to content stable (docs, FAQs, guides), not temporary pages
  • Avoid posting links that change every day
  • Update the file when the site structure changes

Share

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

My web host French preferred (simplicity++) 👇


My web host international preferred (-80% with this link) 👇

The best page builder

Create great websites easily

Get my free book : Le digital expliqué à ceux qui ont autre chose à f*utre