Guide

Adding llms.txt to HubSpot CMS

HubSpot CMS doesn't serve a root text file natively (it's an open feature request), but its File Manager and URL Redirects combine to put a real llms.txt at yourdomain.com/llms.txt.

1. Upload the file to the File Manager

Write your llms.txt (a title, a one-line summary, key pages under H2 headings, absolute HTTPS links). In HubSpot, open the File Manager (Marketing → Files) and upload it. HubSpot stores it on its CDN and gives you a file URL.

2. Redirect /llms.txt to it

Go to Settings → Content → URL Redirects and add a redirect from /llms.txt to the File Manager URL. A crawler requesting /llms.txt follows it to your file.

3. Help crawlers find it

Add a footer link to /llms.txt, and in your site header HTML a <link rel="alternate" type="text/plain" href="/llms.txt">.

4. Validate

Paste your domain into the validator. It follows the redirect, checks the structure, and confirms every linked URL resolves.

Keep reading

Validate your llms.txt →