Reported for: WPML Multilingual CMS 3.3.3
Resolved in: 3.3.4
When the WordPress site is configured in a subfolder (e.g. http://domain.tld/mywpsite), and WPML is configured to use languages in domains, URLs could be wrongly created (e.g. http://fr.domain.tld/mywpsite/mywpsite), leading to 404 pages.
In order to have the domains validated, you need to enter the domain, including the subfolder for each language (e.g http://fr.domain.tld/mywpsite).
In this case, the domain validation passes.
However this then leads to incorrect url when switching between languages (e.g. http://test.de/subfolder/subfolder/).
To temporarily solve this issue, when configuring the languages in domains, do not include the subfolder on each language’s domain and uncheck the “validate” checkbox.
This will correctly save the domain’s information, while keeping the URL correctly rendered.