Title: login problem after changing directory
Last modified: August 31, 2016

---

# login problem after changing directory

 *  [folowc](https://wordpress.org/support/users/folowc/)
 * (@folowc)
 * [10 years ago](https://wordpress.org/support/topic/login-problem-after-changing-directory/)
 * Hi,
    I installed my wordpress under test.example.com and then I changed its directory
   to example.com. Unfortunatelly i forgot to change site_url and home_url, so example.
   com redirected to test.example.com. I fixed it by
 *     ```
       update_option( 'siteurl', 'http://example.com' );
       update_option( 'home', 'http://example.com' );
       ```
   
 * and everything is fine except fact that I can’t login anymore and images still
   points to text.example.com
    How can I fix my idiocy? Regards

The topic ‘login problem after changing directory’ is closed to new replies.

## Tags

 * [login](https://wordpress.org/support/topic-tag/login/)
 * [subdomain](https://wordpress.org/support/topic-tag/subdomain/)
 * [temporary](https://wordpress.org/support/topic-tag/temporary/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [folowc](https://wordpress.org/support/users/folowc/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/login-problem-after-changing-directory/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
