Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

can't login anymore after changing url WordPress



i've moved a wordpress site from one server to the other, and everything worked, but i've changed the url in the wordpress site (using the left column, General settings), and now i can not login anymore, it keeps on redirecting the site to the old site (on the first server).
But also if i try to login on the old server he keeps on redirecting..
Can anyone help me?
Thank you

Answers (7)


Milan Petrovic answers:

Check your site .htaccess file, maybe you have something there to cause that.


Navjot Singh answers:

Enter the following lines in your new blog's wp-config.php:

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

where is your new site's url. Then go to options and change the url from there as well. Should work.


Julio Potier answers:

If you can access to DB, you can update <em>"site_url"</em> and <em>"home_url"</em> options and set right urls (try both the same).
Table: wp_options (assuming "wp_" is your prefix)

If you can not, change the wp-config.php file (root of your install) and type this :

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


Jatin Soni answers:

If you have only changed your general settings url than you may need to modify in two other places.

I would suggest you to directly goto phpmyadmin and search for your old url by using search option into wp_options table and than change all old url wherever you find to new url.

Another thing open your config.php from wp root folder and change your old url to new url.


Go to phpmyadmin and find wp_options and open that.. you will find siteurl and home

Just edit and change to your new url at both place and also config.php file too.

I have just added image for your reference.


Albert Shala answers:

All the information you need can be found here:

I prefer adding this to my functions.php file instead:



nina magbanua answers:

check the wp_options table on your database. check the siteurl and home option_name. the option_value should have the value of your new site.


S├ębastien | French WordpressDesigner answers:

have you change the url of the site in the db ?