This thread is resolved. Here is a description of the problem and solution.
Problem:
The client's website, arnaudhomburger.fr, was redirecting to arnaudhomburger.com unexpectedly, affecting their Google Ads campaign. The issue temporarily resolved after clearing the WordPress cache but recurred shortly after.
Solution:
We recommended checking the
wp-config.php
file for dynamic URL configurations. Specifically, we advised replacing:
define('WP_HOME', 'https://' . $_SERVER['HTTP_HOST']);define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST']);with static domain definitions:
define('WP_HOME', 'https://arnaudhomburger.com');define('WP_SITEURL', 'https://arnaudhomburger.com');After making these changes, we suggested clearing both WordPress and server cache and checking the site in a private browser window to ensure the redirection issue was resolved.
Please note that this solution might be outdated or not applicable to your specific case. If the issue persists, 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 needed, please open a new support ticket at WPML support forum for further assistance.
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.