Skip Navigation

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.

2 Responses to “Persistent Warning: This site has moved to a new location”

  1. As I mentioned in my original message, there is not WP_HOME in the wp-config.php. Also the WP_SITEURL is not dynamic (as below)

    define( ‘WP_SITEURL’, ‘https://www.uprdev.com/’ );