Skip Navigation

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

Problem:
The client's website has English and Arabic translations. After changing the default language to Arabic, the URLs still include '/ar/' which should not be the case.
Solution:
We recommend checking that the option to use a directory for the default language is not active. This setting can be found here: Language URL format documentation. If this option is enabled, it will add '/ar/' to the URLs even if Arabic is set as the default language. Disabling this should resolve the issue.

If the solution provided here is not relevant to your case, perhaps because it's outdated or doesn't apply to your specific situation, we encourage you to open a new support ticket. We also highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please contact us in the WPML support forum.

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.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Mihai Apetrei 1 year, 3 months ago.

Assisted by: Mihai Apetrei.

Author Posts
February 21, 2024 at 11:09 am #15327284

janB-93

Tell us what you are trying to do?

Our site has English and Arabic translations. Initially English was set as the default language, but client requested a switch so Arabic is the default. We followed the documentation, resaved the permalinks and it lands on Arabic now by default.

The issue is it's still adding the /ar/ to the URL. Please advise how we can remove that?

February 21, 2024 at 3:38 pm #15329177

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

The main domain should not contain "/ar" after the domain name if the default language was switched to Arabic.

Please make sure that these settings are NOT active:
https://wpml.org/documentation/getting-started-guide/language-setup/directory-default-language/

Mihai Apetrei