Configuring llms.txt
Liferay DXP 2026.Q3+ Beta Feature
In Liferay DXP, llms.txt is a plain-text Markdown file served at the root of your domain that gives large language models (LLMs) a curated overview of your site. It lists your most important pages and resources so AI tools can surface authoritative information — rather than relying on general crawling — when summarizing or answering questions about your site.
You can configure llms.txt at the instance level or at the site level. When a request arrives at a site’s virtual hostname, Liferay DXP serves that site’s content and ignores the instance-level configuration; requests to any other host use the instance-level content.
Configuring llms.txt requires the llms.txt beta feature flag. An administrator must enable it before the option appears.
Configuring Instance-Level llms.txt
Instance-level llms.txt is served at the instance’s domain ([domain]/llms.txt) for any request whose host is not a site’s virtual hostname.
-
Open the Global Menu (
) and navigate to Control Panel → Configuration → Instance Settings. -
Select SEO under Platform and click llms.txt.
-
Check Enable llms.txt.
-
In the llms.txt Content section, enter Markdown content for the file. A typical llms.txt file starts with an H1 title and a short blockquote summary, followed by sections of links to your most important pages:
# Acme Corporation > Acme Corporation builds industrial widgets and supports enterprise customers. ## Docs - [Product Overview](https://www.example.com/products): Widget catalog and specifications. - [Support](https://www.example.com/support): Guides and troubleshooting. ## Policies - [Privacy Policy](https://www.example.com/privacy) -
Click Save.
Your content is now served at [domain]/llms.txt.
Configuring Site-Level llms.txt
Site-level llms.txt applies to a specific site and overrides the instance-level configuration for requests that match the site’s virtual hostname. The llms.txt option appears in Site Settings only when the site has a virtual host configured on its public pages.
-
Open the Site Menu (
) and go to Configuration → Site Settings. -
Select SEO and click llms.txt.
-
Check Enable llms.txt.
-
In the llms.txt Content section, enter Markdown content for the file.
-
Click Save.
Your content is now served at [virtual-hostname]/llms.txt.
If llms.txt is disabled — at the site level for a virtual-hostname request, or at the instance level otherwise — the URL returns a 404 (Not Found). A site with llms.txt disabled does not fall back to instance-level content.