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?
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
The topic ‘[Closed] Switching off “Use directory for default language “’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.