Guides

Add files at your site root

How do I add llms.txt and a sitemap to my site?

Two of the checks want a file answering at the top level of your domain: llms.txt and sitemap.xml. How you get one there depends entirely on what your site is built with, and on some platforms one of them is not possible at all.

The sitemap you probably already have

Almost every platform and every SEO plugin generates a sitemap automatically. Before creating one, open yourdomain.com/sitemap.xml and see. If a page of addresses loads, the file exists and the finding is about something else: usually that nothing points at it.

Add this as the last line of your robots.txt, using your own domain.

Sitemap: https://yourdomain.com/sitemap.xml

That line is what tells anything reading the file where the map is. A sitemap nothing links to is one that gets found by luck.

The llms.txt file

This one is a plain text file you write, listing what you do and which pages are worth reading. The Fix Pack builds it from your own site, so it is a copy and paste rather than a writing job.

  1. Save it as plain text. Named exactly llms.txt, not llms.txt.txt and not a rich text file. A text editor rather than a word processor.

  2. Put it at the top level of your site so it answers at yourdomain.com/llms.txt. Not in a folder, and not on a page.

  3. Open that address in a browser. It should display as text. If it downloads instead, your host is serving it with the wrong content type, which most hosts have a setting for.

When your platform will not let you

Several hosted site builders do not let you put an arbitrary file at your root. If yours is one of them, the sitemap is almost certainly generated for you anyway, and the llms.txt is the one you lose. That is a real limitation rather than something you are doing wrong, and it costs you the smallest weight on the list.

The guides for each platform say plainly which of the two you can do. Nothing is gained by sending you looking for a screen that does not exist.

If your screens do not look like this, the wording has moved rather than the setting. Search your platform for the words in bold above. If you still cannot find it, send us the scan link and we will tell you where it is on your setup.

Was this page helpful?

Still stuck? Send us a message. A scan link in it makes it much faster to answer.