admin管理员组

文章数量:1310081

I've moved a Wordpress site from one domain to another. I have changed the siteurl and home options in the wp-options table, added this tags into wp-login.php file:

update_option('siteurl', '' ); update_option('home', '' );

and I've tried to rewrite the URL using these tags in the wp-config.php file:

define('WP_HOME','');
define('WP_SITEURL','');

When I enter to the address bar, I'm redirected to my old domain. But /wp-admin is normally accessible. In the settings I can even see the WordPress Address (URL) and Site Address (URL) with the correct values.

Is there any way to fix this? I have tried (as described above) everything I have found on the web and I am beginning to feel very hopeless.

(Sorry for my English mistakes.)

I've moved a Wordpress site from one domain to another. I have changed the siteurl and home options in the wp-options table, added this tags into wp-login.php file:

update_option('siteurl', 'http://my.new.domain' ); update_option('home', 'http://my.new.domain' );

and I've tried to rewrite the URL using these tags in the wp-config.php file:

define('WP_HOME','http://my.new.domain');
define('WP_SITEURL','http://my.new.domain');

When I enter http://my.new.domain to the address bar, I'm redirected to my old domain. But http://my.new.domain/wp-admin is normally accessible. In the settings I can even see the WordPress Address (URL) and Site Address (URL) with the correct values.

Is there any way to fix this? I have tried (as described above) everything I have found on the web and I am beginning to feel very hopeless.

(Sorry for my English mistakes.)

Share Improve this question asked Mar 28, 2016 at 12:39 jendajenda 1611 silver badge6 bronze badges 1
  • 6 It may be the old browser cache! Try with private browsing or by adding query string http://my.new.domain/?random_string – Sumit Commented Mar 28, 2016 at 12:49
Add a comment  | 

1 Answer 1

Reset to default 5

As Sumit pointed out, the problem was in the old browser cache. The solution was to clear browser cache (or just add a query string after the address: http://my.new.domain/?random_string).

Thank you.

本文标签: redirectRedirecting to old domaintried everythingnothing works