Skip Navigation

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
- - 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 1 reply, has 0 voices.

Last updated by Andreas W. 2 days, 17 hours ago.

Assisted by: Andreas W..

Author Posts
February 8, 2025 at 2:12 pm #16682470

mariuszM-13

Background of the issue:
I am trying to switch off the 'Use directory for default language' option in WPML because it causes compatibility problems with Litespeed CDN. I need to ensure that old links with '/en/' redirect properly to new ones without '/en/'.

Symptoms:
When I switch off the option and refresh permalinks, all old links with '/en/' get broken and show 404 errors.

Questions:
How can I automatically generate 301 redirections from old permalinks with '/en/' to new ones without '/en/' using WPML?

February 8, 2025 at 3:11 pm #16682539

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Do you get those 404 errors when using the menu or language switcher?

If you refer to links coming from the text content of your posts and pages, take kindly note that WPML not be able to automatically adjust those.

You will need to manually adjust the contents in this case.

You can use a plugin like "Redirection" to create those redirects.

Best regards
Andreas