This thread is resolved. Here is a description of the problem and solution.
Problem:
The client wants to set up WPML so that all languages, including the default, are in subdirectories without creating a root page for the site.
Solution:
We recommend setting an empty root page with a specific PHP template to automatically redirect visitors to the default language directory. This approach prevents both URLs (domain.com and domain.com/uk) from being accessible simultaneously and avoids duplicate content issues with Google. Here are the steps to implement this:
1. Select "Edit root page" and create an empty WordPress Page.
2. Follow the instructions to create a PHP template with the redirect.
3. Assign the template to your empty root page.
For detailed guidance, refer to the section "Redirecting the Root Domain to the Default Language Directory" in our documentation here.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/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 open a new support ticket 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 0 voices.
Last updated by 1 week, 3 days ago.
Assisted by: Nicolas V..