"WordPress Address" and "Site Address" problem

68 views
asked Nov 10, 2012 in Website Builder by DinoGuy (2,130 points)
I changed the wordpress address and the site  address of one of my sites to the address of another one of my site. Meaning I have two wordpress sites site1 and site2, I was experimenting and changed the wordpress address and site address of site1 to the URL of site2 . So now my problem is the admin login of site1 became the admin of site1, and I am no longer able to log back to site1 to undo what I did.
How can I fix this? Please help

2 Answers

0 like 0 dislike
answered Nov 10, 2012 by WebGuru (9,280 points)
If you have FTP access to the site add the following lines in your wp-config.php  file
define('WP_HOME','http://yourURL.com');
define('WP_SITEURL','http://yourURL.com');
However you will no longer be able to edit them from your wp admin page anymore.
0 like 0 dislike
answered Nov 10, 2012 by expert (14,380 points)
There are several ways to do this, check
http://codex.wordpress.org/Changing_The_Site_URL
...