In short
If you have decided to publish an llms.txt file and your site exists in several languages, the file must reflect all the language versions, not just the original language. Depending on the size of the site, this takes the form of a root file with one section per language, or one file per language version. This check is conditional and the format is still experimental: only do it if llms.txt has already been judged useful for your site.
Why it matters
llms.txt is a proposal published on llmstxt.org: a Markdown file that introduces a site to a language model and lists its main resources. Only the # title is required; it is followed by a summary as a > blockquote, optional paragraphs and ## sections made of link lists in the form [name](url): note. A section named Optional groups the links an agent can skip when it is short on space. The proposal states that the file can sit at the root or at any path of the site, in which case it covers the pages under that path; when several files apply, the most specific one wins. It says nothing about languages.
A file written when the site was created, in French, with links to French pages only, therefore presents agents with a French-speaking company. An agent helping a German-speaking user finds no German URL in it and may send that user to pages they cannot read.
Keep this in proportion: Google states that no AI-specific text file is needed to appear in AI Overviews or AI Mode, and the use of llms.txt by generative engines to build their answers is not publicly documented at the time of writing. The prior decisions are covered in assess a real use case for llms.txt (opens in a new tab).
What it improves
- Consistency for agents that read the file: each language finds its own reference pages in it.
- Tools that load the file on demand, for example a coding assistant to which a developer gives the URL of your documentation: an effect limited to sites that have documentation to read.
- Citations in AI answers No proven effect. No practice guarantees a citation.
- Rankings in Google or Bing No effect.
How to check
Request each published file and check the HTTP status code, the content type and the encoding:
for p in /llms.txt /de/llms.txt /nl/llms.txt; do
printf "%s " "$p"
curl -s -o /dev/null -w "%{http_code} %{content_type}\n" "https://example.com$p"
done
Compliant result: 200 text/plain; charset=utf-8 (or text/markdown; charset=utf-8). A 200 followed by text/html means the CMS returns an error page or the home page instead of the file.
Then check that each link returns 200 and points to the right language:
curl -s https://example.com/de/llms.txt \
| grep -o -E '\(https://[^)]+\)' | tr -d '()' \
| while read -r url; do
printf "%s %s\n" "$(curl -s -o /dev/null -w '%{http_code}' "$url")" "$url"
done
All URLs in the German file must start with /de/ (or with your German domain). Finally, open the file in a browser: characters such as é in place of é reveal an incorrectly declared encoding.
How to implement
Before you start
Choose the structure based on how your URLs are organized:
| Site organization | Files to publish |
|---|---|
Subdirectories, few key pages per language (/fr/, /de/, /nl/) |
A single /llms.txt at the root, with one ## section per language |
| Subdirectories, many resources per language (documentation, catalog of guides) | A root /llms.txt that introduces the site and points to /de/llms.txt, /nl/llms.txt |
Subdomains (de.example.com) |
One file at the root of each subdomain |
Country-code domains (example.de) |
One file at the root of each domain |
Content rules, valid everywhere:
- Absolute URLs only (see use absolute URLs (opens in a new tab)).
- One language per section, with the title and notes written in that language.
- Only pages that actually exist in the language: no link to the French page in the German section because the translation is missing.
- No machine-translated pages that have not been proofread, no confidential content.
- File saved as UTF-8.
Example root file for Thé des Lisières, a fictional online shop that publishes in French, German and Dutch:
# Thé des Lisières
> Online shop for loose-leaf tea from small plantations. Delivery to France, Belgium, Germany, Austria and Switzerland. Site available in French, German and Dutch.
Each section lists the reference pages for one language. Prices are in euros, except in Switzerland (Swiss francs).
## Français
- [Catalogue des thés](https://example.com/fr/thes/): toutes les familles de thés, origines et prix
- [Livraison et retours](https://example.com/fr/livraison/): délais et tarifs par pays
- [Guide de préparation](https://example.com/fr/guides/preparer-the/): températures et temps d'infusion
## Deutsch
- [Teesortiment](https://example.com/de/tee/): alle Teesorten mit Herkunft und Preis
- [Versand und Rückgabe](https://example.com/de/versand/): Lieferzeiten und Kosten für Deutschland, Österreich und die Schweiz
## Nederlands
- [Theeassortiment](https://example.com/nl/thee/): alle theesoorten, herkomst en prijzen
- [Levering en retour](https://example.com/nl/levering/): levertijden en kosten voor België
## Optional
- [À propos](https://example.com/fr/a-propos/): histoire et engagements de la maison
Have the German and Dutch text proofread by a native speaker. For the multi-file variant, the ## Deutsch section of the root file shrinks to a link to https://example.com/de/llms.txt, and that file starts with its own # title and a summary in German.
Warning: do not create a physical
de/folder at the web root to putllms.txtin if your/de/pages are generated by a CMS or a framework. The server would find a real directory at/de/and could return a 403 error for the whole German version. Serve the file through a rewrite rule or a route, as shown below.
Apache
Versions Apache 2.4.
Put the files in a folder unrelated to your public URLs, for example llms/ at the web root (llms/llms.txt, llms/llms-de.txt, llms/llms-nl.txt). Add at the top of .htaccess, before the CMS rules:
AddCharset UTF-8 .txt
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^llms\.txt$ /llms/llms.txt [L]
RewriteRule ^(de|nl)/llms\.txt$ /llms/llms-$1.txt [L]
</IfModule>
Replace de|nl with your language prefixes. A .htaccess file takes effect immediately; in the virtual host configuration, run sudo apachectl configtest && sudo systemctl reload apache2.
Nginx
Versions Nginx 1.24 and later.
In the site's server block:
location = /llms.txt {
alias /var/www/example/llms/llms.txt;
default_type text/plain;
charset utf-8;
}
location ~ ^/(de|nl)/llms\.txt$ {
alias /var/www/example/llms/llms-$1.txt;
default_type text/plain;
charset utf-8;
}
A regular expression location takes precedence over the location / prefix that passes pages to the CMS. Reload: sudo nginx -t && sudo systemctl reload nginx.
Cloudflare
Versions Cloudflare dashboard, all plans, November 2026.
Cloudflare passes on the file served by the origin. By default, it does not cache .txt files other than robots.txt; if a cache rule caches the whole site, purge the files after each change in Caching > Configuration, Custom Purge, by entering the full URLs. Also check in AI Crawl Control that the crawlers you are targeting are not blocked: a file that cannot be reached is useless.
WordPress
Versions WordPress 6.6 and later; Yoast SEO and Rank Math in their November 2026 versions.
Two SEO plugins generate /llms.txt (English interface labels, as documented by the vendors):
- Yoast SEO:
Yoast SEO > Settings > Site features,AI toolssection,LLMS.txt. Turn it on, then choose manual page selection to add your pages in each language. Yoast states that the feature is not available on multisite. - Rank Math:
Rank Math SEO > Dashboard,LLMS Txtmodule, thenGeneral Settings > Edit llms.txt. TheAdditional Contentfield accepts free text: add your sections by language there.
Neither documentation describes the behavior with WPML or Polylang. Check the file produced: if it only contains the main language, complete it by hand or turn off generation and apply the Apache or Nginx method with static files. In that case, place the Apache rules above the # BEGIN WordPress block.
Shopify
Versions Shopify admin, all plans, November 2026.
Shopify does not let you put a file at the root of the store. Two routes:
- An app: Yoast SEO for Shopify offers
Settings > Advanced > llms.txt, with manual page selection. Check that the URLs of markets and languages (/de/,/nl-be/) are included. - A file and a redirect: upload the file in
Content > Files, copy its URL, then create a URL redirect (Content > Menus,View URL redirects) from/llms.txtto that full URL. Shopify only redirects addresses that do not exist, which is the case here. According to the documentation, a redirect may or may not apply to market subfolders: test/de/llms.txtand create one redirect per subfolder if needed.
The second route serves the file from Shopify's file domain after a redirect; how agents handle this case is not documented.
Laravel
Versions Laravel 12 and 13.
Store the files in resources/llms/ and declare the routes in routes/web.php, before any catch-all route such as /{locale}/{slug}:
use Illuminate\Http\Response;
use Illuminate\Support\Facades\Route;
Route::get('/llms.txt', fn (): Response => response(
file_get_contents(resource_path('llms/llms.txt')),
200,
['Content-Type' => 'text/plain; charset=UTF-8'],
))->name('llmsTxt');
Route::get('/{locale}/llms.txt', fn (string $locale): Response => response(
file_get_contents(resource_path("llms/llms-{$locale}.txt")),
200,
['Content-Type' => 'text/plain; charset=UTF-8'],
))->whereIn('locale', ['de', 'nl'])->name('llmsTxtLocalized');
After deployment, run php artisan route:cache if you cache your routes.
Next.js
Versions Next.js 15 and 16 (App Router).
The root file goes in public/llms.txt. For the per-language files, create content/llms.ts:
export const llmsFiles: Record<string, string> = {
de: `# Thé des Lisières
> Onlineshop für losen Tee aus kleinen Plantagen.
## Seiten
- [Teesortiment](https://example.com/de/tee/): alle Teesorten mit Herkunft und Preis
`,
};
Then the route app/[locale]/llms.txt/route.ts:
import { llmsFiles } from '@/content/llms';
export async function GET(
_request: Request,
{ params }: { params: Promise<{ locale: string }> },
) {
const { locale } = await params;
const body = llmsFiles[locale];
if (!body) {
return new Response('Not found', { status: 404 });
}
return new Response(body, {
headers: { 'Content-Type': 'text/plain; charset=utf-8' },
});
}
With next-intl, the recommended matcher in proxy.ts (middleware.ts before Next.js 16) excludes paths that contain a dot: /de/llms.txt therefore reaches the route without being rewritten. If your matcher is different, check that it does not redirect this path.
Shared hosting
Upload the files by FTP or through the file manager into the llms/ folder at the web root, then add the rules from the Apache section to .htaccess. If the host uses Nginx without access to its configuration, only the root /llms.txt file is possible: in that case, group all languages into its sections.
Common mistakes
- A file in the original language only while the site exists in four languages.
- Linking the French page in the German section for lack of a translation: the agent sends a German speaker to a page they cannot read.
- File saved as Windows-1252 or ISO-8859-1: accents become unreadable.
- Relative URLs: invalid as soon as the file is read outside its context.
- A physical
/de/folder created to hold the file: the German version of the site returns 403. - Forgetting to update it when a language gains or loses pages: see keep the file up to date (opens in a new tab).
- Expecting an effect on citations: nothing proves it; first measure whether the file is read.
Frequently asked questions
Do you need one llms.txt file per language?
Not necessarily. For a site in subdirectories with few key pages, a single llms.txt file at the root, with one section per language, is enough. One file per version, such as /de/llms.txt, is justified when each language has many resources, and becomes the rule for subdomains or country-code domains. The llmstxt.org proposal allows a file at any path, with the most specific one taking precedence.
Does Google use llms.txt for AI Overviews?
No, nothing suggests it does. Google writes that no machine-readable file or AI-specific text file is needed to appear in AI Overviews or AI Mode. These features rely on the Google Search index. A multilingual llms.txt file can be useful to the agents and tools that read it, but it does not improve visibility in Google's AI features.
Can you link to translated pages in the same llms.txt?
Yes. A single llms.txt file can list pages in several languages, provided they are placed in separate sections, titled and annotated in the relevant language, with absolute URLs. Only list pages that really exist in each language and have been proofread: pointing to the original page for lack of a translation produces answers the foreign user cannot use.
How do you know whether AI crawlers read your llms.txt?
Look for requests to /llms.txt and its language variants in the server or CDN logs, and note the user agents requesting them. If no crawler from the engines you are targeting fetches it after several weeks, do not invest further in its multilingual version. The full method is described in the check on whether the targeted systems read these files.
Resources
- llmstxt.org: the llms.txt proposalllmstxt.org
- Google Search Central: AI features and your websitedevelopers.google.com
- Yoast: enable llms.txt and Rank Math: llms.txtyoast.com
- Shopify Help Center: URL redirectshelp.shopify.com
- Cloudflare: default cache behaviordevelopers.cloudflare.com
- Nginx: alias directive and Apache: AddCharsetnginx.org
- Next.js: Route Handlers and next-intl: proxy configurationnextjs.org
Updated on
Topic checklist (PDF)