My wordpress site gets redirected automatically to the old site any known solution for this?

This is because the URL settings inside WordPress are still pointing to the old WordPress site. More information is available in the Moving WordPress documentation.

If your WordPress admin pages are still working, you can go to Settings → General, and change the WordPress URL and the Site Address to the correct values.

If your WordPress site is completely broken, then you can add the following values to wp-config.php, which will have the same effect:

define('WP_HOME', 'http://your_server/blog');
define('WP_SITEURL', 'http://your_server/blog');

Note that in most cases, WP_HOME and WP_SITEURL will be the same, apart from exceptional circumstances.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)