Skip Navigation

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

Problem:
The client is working on a multilingual site and needs certain pages to be accessible from a different domain while using WPML. The site should show the pages like this:
domain.com/pageA -> WPML translating to domain.com/en/pageA
seconddomain.com/pageB -> WPML translating to seconddomain.com/en/pageB

Solution:
We explained that WPML allows the use of different domains per language on a single WordPress installation, but this only works with different domains or a mix of domains and subdomains. We provided documentation on how to set up WPML with different domains per language: https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/
We clarified that it is not possible to have a mix of languages that use domains and languages that use directories as the client described. For further clarification: https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/#frequently-asked-questions
We suggested that achieving the desired setup might require custom programming, which is beyond our support scope, and recommended consulting with one of our certified contractors: https://wpml.org/contractors/

Please note that the solution provided might be irrelevant due to being outdated or not applicable to your case. If this is the case, 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 you still need assistance, please open a new support ticket with us.

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 Mohamed Sayed 11 months, 1 week ago.

Assisted by: Mohamed Sayed.

Author Posts
March 24, 2024 at 6:38 pm #15444309

stefanC-12

Hi, I am working on a multilingual site (using WPML) where a certain number of pages need to be accessible from a different domain. So there is only one WP install with a main domain (domain.com) and some pages that need to be mapped to another (seconddomain.com).
For multidomain I would like to use this plugin: "Domain Mapping System | Manage Multiple Domains in a Single" (https://wordpress.org/plugins/domain-mapping-system/).

So the setup should look something like this:

domain.com/pageA -> WPML translating to domain.com/en/pageA
seconddomain.com/pageB -> WPML translating to seconddomain.com/en/pageB

I know that multiple domains with one WP install are possible, the problem I face is that no plugin that does the mapping supports WPML (or any other language plugin)
The developer of "Domain Mapping System" hinted that I might be able to solve this with WPML alone.

Can you provide any info on this or maybe point me in the right direction?

Thanks!
Stefan

March 24, 2024 at 11:00 pm #15444436

Mohamed Sayed

Hi Stefan,
Thanks for contacting WPML support.

With WPML you can use different domains per language on a single WP installation, but this option works only with different domains or a mix of domains and subdomains.

Kindly check this doc for more details: https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/

This means that you can have the following:

domain.com/pageA -> Translated to: seconddomain.com/pageA

But it is not possible to have a mix of languages that use domains and languages that use directories like what you described. Kindly check here: https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/#frequently-asked-questions

Maybe this can be achieved using custom programming which is beyond the scope of our support. At this point, I would suggest checking with one of our certified contractors from this link: https://wpml.org/contractors/

Kind regards,
Mohamed

March 25, 2024 at 8:13 am #15445036

stefanC-12

Hi Mohamed,
thanks for your quick reply.

I have read the docs you provided but I don't think this will work for my usecase. I will keep looking for a solution …

thanks!
Stefan