Solution:
Whenever you move a WordPress site, you need to properly adjust configurations in your WordPress install in the wp-config.php
file on the following variables:
define('WP_SITEURL', 'http://domain.com/wordpress');
define('WP_HOME', 'http://domain.com/');
define('WP_CONTENT_DIR', '/path/to/your/wordpress/wp-content');
define('WP_CONTENT_URL', 'http://domain.com/wp-content');
This will force your install to use the domain.com
URLs. Also, when you do this the first time set the RELOCATE
setting to true
like this:
define('RELOCATE', true);
That basically tells WordPress to rejigger (that’s my technical term for it) it’s stored settings for the new settings. And after you have reloaded your site & it works as expected, set RELOCATE
setting back to false
like this:
define('RELOCATE', false);