Please make sure to update to WPML 4.3.6 and check our list of Known Issues before reporting

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 Bruno Kos 10 months, 3 weeks ago.

Assigned support staff: Bruno Kos.

Author Posts
April 10, 2019 at 3:12 pm #3577825


I am struggeling to configure WPML to utilise root domains for different languages.
hidden link for en_gb. This is the 'master' site
hidden link for international English
hidden link for German
hidden link for Swedish.

I started to point all different domains to the same IP. Next I configured my NGIX server via Vesta CP . In the main domains ( config i defined the domain aliases:
hidden link
hidden link
hidden link

I edited the wp-config to contain:
$host = $_SERVER['HTTP_HOST'];
$host = in_array($host, ['', '','','']) ? $host : '';
define( 'WP_SITEURL', 'hidden link' . $host );
define( 'WP_HOME', 'hidden link' . $host );

Last but not least I turned the WPML settings to domain based languages.
(The check indicated that the domain settings are not valid. I have no clue on how or why).

The site seems to work, but not consistently AND site management behaves differently based on the rootdomain that is currently active. hidden link of hidden link

What would be the correct way to start debugging the above implementation AND what did I miss?

April 10, 2019 at 3:43 pm #3578105

Bruno Kos

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)


Thank you for contacting WPML support!

Can you please check these threads in detail:

Bruno Kos

The topic ‘[Closed] How to use WPML with different domains per language for NGIX’ is closed to new replies.