Skip Navigation

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

Problem:

Use a different domain for one language but a folder for another.

Solution:

It's not possible to mix "A different domain per language" and "Different languages in directories", but you can set English to be a subdomain, for example, en.yourdomain.com.

Relevant Documentation:

https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/#frequently-asked-questions

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.

Our next available supporter will start replying to tickets in about 7.20 hours from now. Thank you for your understanding.

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by lucB 1 year, 8 months ago.

Assisted by: Osama Mersal.

Author Posts
February 21, 2023 at 3:34 pm #13080723

lucB

Tell us what you are trying to do?
Is it possible to combine the different language switching methods?
For example, I want to show the Dutch content on giec.nl, the Flemish content on giec.be and the english content on giec.be/en.

What is the link to your site?
hidden link

February 22, 2023 at 7:52 am #13085579

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) It's not possible to mix "A different domain per language" and "Different languages in directories", but you can set English to be a subdomain, for example, en.giec.be.

Kindly check this guide to know more about 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/#frequently-asked-questions)

2) It's not related to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line:

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

Best regards,
Osama

February 22, 2023 at 1:50 pm #13089689

lucB

Thank you for your reply. I using a subdomain was a good suggestion.

Also thank you for noticing the problem in our debug.log.