Skip Navigation

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

Problem:
You are using WPML to translate your site from German to English and have set up 'Different languages in directories'. However, the German homepage incorrectly redirects to domain.de/de/ instead of just domain.de, and deactivating WPML plugins resulted in the URL becoming domain.de/de/de/de. Additionally, you inquired about the necessity of changing internal absolute links to relative links and requested a checklist for starting with WPML.
Solution:
First, ensure that in WPML > Languages, the option 'use a directory for the default language' is not active. This setting should prevent the default language (German in your case) from being placed under a subdirectory, thus keeping the main domain clean (domain.de).
Regarding the internal links, WPML manages these when you switch languages in the backend, so there is no need to change them to relative links.
While we do not have a specific checklist for starting with WPML, we do offer a Getting Started guide which can assist you in setting up WPML correctly.

If this solution does not resolve your issue or seems outdated, we 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. Should you need further assistance, please do not hesitate to open a new support ticket at 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 4 replies, has 0 voices.

Last updated by Mihai Apetrei 1 month ago.

Assisted by: Mihai Apetrei.

Author Posts
November 14, 2024 at 3:19 pm #16403567

judithR-10

Background of the issue:
I use WPML for translation of my site from German into English. The structure for German is like domain.de and domain.de/xy/. For English, it should be like domain.de/en/, domain.de/en/xy, and domain.de/en/category-page. I chose the setting 'Different languages in directories'.

Symptoms:
When I open the homepage for German, it opens like domain.de/de/ which should remain domain.de.
Now I have deactived all wpml plugins but still there is now: domain.de/de/de/de ???

Questions:
How can I configure WPML to keep the German homepage as domain.de without the /de/ directory and remove this bug domain.de/de/de/de ?

November 15, 2024 at 12:10 am #16405374

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there.

Please make sure that inside WPML > Languages, you don't have this option active: use a directory for the default language.

Normally, the default language should exist on the main domain, not under a subdirectory.

Please let me know how things go.

Mihai

November 15, 2024 at 10:19 am #16407106

judithR-10

Hi,

thanks for your answer!

I have noticed there are many internal absolute links.
Is there any need to change them to relative links? I'm just wondering how internal links are transferred to the /en/..directory.

Thanks,
Judith

November 15, 2024 at 10:23 am #16407113

judithR-10

I want to avoid any conflicts and prepare everything before starting wpml. Is there a checklist available? This would be nice to have.

November 18, 2024 at 7:36 pm #16416426

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there, Judith.

We don't have a list for starting with WPML but we do have a "Getting Started guide" to help you with the WPML setup:
https://wpml.org/documentation/getting-started-guide/

The internal links are managed by WPML so when you switch the flag in the top black bar in the backend area and edit a page's content for example, you will affect the content for that specific language.