Title: WordPress Address Mistake
Last modified: August 30, 2016

---

# WordPress Address Mistake

 *  [aliciousness](https://wordpress.org/support/users/aliciousness/)
 * (@aliciousness)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/wordpress-address-mistake/)
 * I was finished with a site and was testing out some settings.
 * I went to settings>general and changed the wordpress address and the site address
   to another domain name I had.
 * Now whenever I go to my site /wp-admin it redirects me to the other site’s /wp-
   admin login. How do I fix this?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/wordpress-address-mistake/#post-6402592)
 * > I went to settings>general and changed the wordpress address and the site address
   > to another domain name I had.
 * You can do that, but that only tells your database what to expect coming in and
   what to tell WordPress to use for finding things. So to make that work, you next
   have to use cPanel or whatever to send the previous domain elsewhere and to send
   the new one to the installation now expecting it.
 * To fix things…
 *     ```
       /*-either-*/
       /** @ near top of wp-config.php /*toggle on/off*
       define('WP_HOME','http://domain.com');
       define('WP_SITEURL','http://domain.com');
       /*-or-*/
       /** @ near top of wp-config.php /*toggle on/off*
       define('WP_HOME','http://www.domain.com');
       define('WP_SITEURL','http://www.domain.com');
       /*-end-*/
       ```
   
 * Select the two lines you want to use, edit them and then temporarily add a slash
   following the `/*toggle on/off*` just above them to un-comment them.
 *  Thread Starter [aliciousness](https://wordpress.org/support/users/aliciousness/)
 * (@aliciousness)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/wordpress-address-mistake/#post-6402643)
 * thank you it worked

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WordPress Address Mistake’ is closed to new replies.

## Tags

 * [address](https://wordpress.org/support/topic-tag/address/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [aliciousness](https://wordpress.org/support/users/aliciousness/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/wordpress-address-mistake/#post-6402643)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
