Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 12:00 – 15:00 12:00 – 15:00 12:00 – 15:00 13:00 – 15:00 13:00 – 15:00 -

Supporter timezone: Europe/Vienna (GMT+02:00)

Tagged: 

This topic contains 6 replies, has 0 voices.

Last updated by Lucas Vidal de Andrade 4 months, 1 week ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
December 5, 2025 at 8:54 am #17637197

christopherW-28

Dear WPML Support Team,

I am writing because the Yoast SEO llms.txt file is generating incorrect URLs for all our translated Russian pages, despite using the WPML SEO "glue" plugin. The URLs are missing the required /ru/ language directory.

My Setup
Primary Language: English
Secondary Language: Russian (/ru/ directory structure is used)
Active Plugins: WPML Multilingual CMS, Yoast SEO, WPML SEO (glue plugin).

Problem: The llms.txt file lists URLs like: hidden link... instead of the required: hidden link...

Proof of Conflict
The standard sitemap.xml file generated by Yoast is completely correct (it includes the /ru/ slug for all translated pages).

The llms.txt file is the only part of the site structure failing.

Troubleshooting Already Performed
To resolve this sync failure, I have already taken the following steps:

Plugin Check: Confirmed WPML SEO (glue plugin) is installed and active.

WPML Setting Fix: Went to WPML → Settings and set the Page URL slug option to "Translate (the slug as well as the content)" to force URL assembly.

Page Test: For the Business Visitor Visa page, I manually updated the slug in the ATE (copying the English slug to the Russian field) and marked the translation as complete. The llms.txt file for this single page is still incorrect.

Full Cache/Rule Flush:

Deleted the physical llms.txt file.

Flushed Permalinks (Settings → Permalinks → Save Changes).

Cleared all plugin and browser caches.

Toggled the Yoast LLM Optimization feature OFF and ON to force regeneration.

WPML System Checks: Ran the "Clear the cache in WPML" troubleshooting step.

Request
The failure to generate the correct URL for the llms.txt file appears to be a deeper integration issue between the two plugins concerning a newer Yoast file. Please advise on the necessary database cleanup or configuration change required to force the system to apply the /ru/ directory to these translated URLs.

Thank you for your assistance.

December 6, 2025 at 7:34 am #17640016

christopherW-28

Hi Lucas

I set up Yoast and generated an llms.txt file as requested.

It appears to me that while your output is slightly different - maybe due to your setup and translating the page slugs, it does not have the right file name / directory structure required to work.

## Pages
- [Тест WPML 01 RU](hidden link)
- [Test WPML 01](hidden link)
- [Sample Page](hidden link)

As you can see, the /ru/ part is missing.

Thanks for your help.

I'll wait for the next steps.

Chris

December 8, 2025 at 10:29 am #17643325

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: Europe/Vienna (GMT+02:00)

Thank you for sharing. It seems that this feature is not yet compatible with WPML. I've escalated this ticket to our dev team, they will check if there's a workaround or solution to it. That might take a few days. I'll keep you up to date.

December 8, 2025 at 10:58 am #17643474

christopherW-28

Hi Lucas

OK, thanks for your attention. I'll wait for your dev team to come back.

I've turned off this feature in the plugin for now.

Best regards from a wet and windy UK.

Chris

December 9, 2025 at 10:00 am #17646575

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: Europe/Vienna (GMT+02:00)

Hey there, thank you for waiting.

It seems Yoast SEO is able to export the correct URLs, but initially, it exported a version without any language directories.

Please ensure to have a backup before proceeding. To regenerate the file from scratch :

1. Go to your root directory and delete the file llms.txt
2. Go to Yoast SEO > Settings > advanced > llms.txt
3. Disable the Automatic page selection
4. Save
5. Enable again
6. Save
7. Access to the same link in a private browser: hidden link

This should regenerate the file with all languages. Please let me know how it goes.

image1.png
December 11, 2025 at 9:01 am #17654808

christopherW-28

Good morning Lucas

Unfortunately, that didn't work. I've purged the server and browser cache at each step as an added check, but it didn't work.

The language slugs are still missing. See the text taken from the llms.tx file below:

- [Деловая Виза в Великобританию](hidden link)
- [UK Business Visitor visas](hidden link)

For their reference, the plugin also seems to only pick a few posts, not all available, the same with other elements like tours, categories and tags.

Best regards

Chris

December 11, 2025 at 12:15 pm #17655863

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: Europe/Vienna (GMT+02:00)

Hello there,

Thank you for sharing your results. Would it be ok, if I re-apply the solution on your live website? Please ensure to have a full website backup, and confirm if I can proceed.

For that, I'd need admin website access. The required fields can be found below the comments section. The information you enter is private, i.e. only you and I can see it and have access to it.

I may need to replicate your website locally. To do this, I need to temporarily install a plugin called "Duplicator" or "All in One WP Migration" on your website. This will allow me to create a copy of your website and content. Once the issue is resolved, I will delete the local website. Let me know if this works for you.

IMPORTANT

Please make a backup copy of the site files and database before giving us access.

- If you do not see the wp-admin/FTP fields, this means your post and site login details are being made PUBLIC. DO NOT post your website details if you do not see the required wp-admin/FTP fields. If you do not, ask me to enable the private box. The private box looks like this:

hidden link

The topic ‘[Closed] Yoast SEO llms.txt file generating incorrect URLs for translated Russian pages (Missing /ru/ slug)’ is closed to new replies.