- Status
- Resolved
- Reported for
- WPML Multilingual CMS 4.6.4
- Resolved in
- WPML 4.6.7
- Topic tags
- ATE, Bug
Overview of the issue
If you set your WP_HOME and WP_SITEURL dynamically in your wp-config.php:
define('WP_HOME','http://'.$_SERVER['HTTP_HOST']);
define('WP_SITEURL','http://'.$_SERVER['HTTP_HOST']);
a warning keeps popping up on your site indicating that the site has been moved to a new location without actually being moved.
Workaround
If you encounter this situation, we recommend you to either:
- Remove those dynamic declarations from the wp-config.php file
or - Hard-code them in the main domain.