This thread is resolved. Here is a description of the problem and solution.
Problem:
The client's website operates in three languages across three different domains. However, accessing the domains without the 'www' prefix redirects all traffic to the Danish version of the site.
Solution:
We recommend contacting your hosting provider as the required changes involve external settings not directly related to WPML. You should implement the following code for each domain, but please confirm this with your hosting provider and ensure you have a full website backup before making any changes:
# BEGIN WordPress<br /># The directives (lines) between "BEGIN WordPress" and "END WordPress" are<br /># dynamically generated, and should only be modified via WordPress filters.<br /># Any changes to the directives between these markers will be overwritten.<br /><ifmodule mod_rewrite.c><br />RewriteEngine On<br />RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]<br />RewriteBase /<br />RewriteRule ^index\.php$ - [L]<br />RewriteCond %{REQUEST_FILENAME} !-f<br />RewriteCond %{REQUEST_FILENAME} !-d<br />RewriteRule . /index.php [L]<br />RewriteCond %{HTTP_HOST} !^www\.<br />RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]<br /></ifmodule><br /># END WordPress
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your 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 further assistance is needed, please 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.
This topic contains 3 replies, has 2 voices.
Last updated by Lucas Vidal de Andrade 1 week, 3 days ago.
Assisted by: Lucas Vidal de Andrade.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.