Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client needed assistance with configuring the WPML plugin to always display the language code in the URL, with "fr" as the default language.
Solution:
We recommended the following steps:
1) Perform a full site backup.
2) Navigate to WPML>>Languages.
3) Scroll down to Languages URL format.
4) Select the Use directory for default language option under Different languages in directories.
5) Save the changes.
6) Go to Settings>>Permalinks and save the changes again.
For more detailed instructions, please refer to our documentation: Setting language URL format.

If this solution does not seem relevant to your issue, please do not hesitate to open a new support ticket with us here.

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.

This topic contains 1 reply, has 2 voices.

Last updated by Bigul 1 year, 1 month ago.

Assisted by: Bigul.

Author Posts
November 20, 2023 at 4:23 pm #14879539

brunoP-18

Hi Bigul,

Thank you for all these steps. I did all of them and it seems that it worked.

Also, could you tell me how to configure the plugin to always have the language displayed in the URL ("fr" by default)? Could you help me?

Thank you!

November 20, 2023 at 4:29 pm #14879615

Bigul
Supporter

Languages: English (English )

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

Hi Bruno,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

Please try the following steps after a full site backup on your staging site and let us know your feedback.

1) Visit WPML>>Languages
2) Scroll down to *Languages URL format*
3) Choose *Use directory for default language* option of *Different languages in directories*
4) Save the changes
5) Visit Settings>>Permalinks
6) Save the changes

Refer to this article for more details - https://wpml.org/documentation/getting-started-guide/language-setup/directory-default-language/

--
Thanks!

Bigul