Skip Navigation

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

Problem:
The client wants to redirect the root page (/) to the primary language version (/en/), and is asking whether to use .htaccess or cPanel domain redirects to achieve this.

Solution:
We recommend following the guide on setting up a language directory as the default language. Here are the steps:
1. Visit the guide on how to set up a language directory as the default language.
2. Follow the instructions provided in the guide.

If this solution doesn't seem relevant to your situation, please open a new support ticket with us, and we'll be happy to assist you further.

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 Waqas Bin Hasan 1 year, 4 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
January 25, 2024 at 9:52 am #15225303

lukaD-5

Hi,

I have set the root.html as my root page.

I have all languages in different directories.

I would like to redirect the root page / to primary language /en/ now.

Can I simply redirect / to /en/ in htaccess or in cpannel / domain / redirects

Please let me know what would be the best option to do this?

Looking forward to your reply.

All the best,
Luka

January 25, 2024 at 12:27 pm #15226039

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Luka,

Thank you for contacting the support.

I'll suggest to take a look at this guide https://wpml.org/documentation/getting-started-guide/language-setup/directory-default-language/ and follow along.

Please let me know if this helps answering your query.

Regards.