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?
Navjot Singh answers:
Enter the following lines in your new blog's wp-config.php:
where example.com 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', 'http://yoursite.com' );
define( 'WP_HOME', 'http://yoursite.com' );
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: http://codex.wordpress.org/Changing_The_Site_URL
I prefer adding this to my functions.php file instead: