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

  • SOLVED

Hi,

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
Greetings
Karina

Answers (7)

2011-12-14

Milan Petrovic answers:

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

2011-12-14

Navjot Singh answers:

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

define('WP_SITEURL', 'http://example.com');
define('WP_HOME', 'http://example.com');


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

2011-12-14

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', 'http://yoursite.com' );
define( 'WP_HOME', 'http://yoursite.com' );

2011-12-14

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.


OR

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.

2011-12-14

Albert Shala answers:

All the information you need can be found here: http://codex.wordpress.org/Changing_The_Site_URL

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

update_option('siteurl','http://example.com/blog');
update_option('home','http://example.com/blog');

2011-12-14

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.

2011-12-14

S├ębastien | French WordpressDesigner answers:

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