Title: Help!  Changed URL accidentally
Last modified: August 19, 2016

---

# Help! Changed URL accidentally

 *  [abbycookie](https://wordpress.org/support/users/abbycookie/)
 * (@abbycookie)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/help-changed-url-accidentally/)
 * I am developing my first blog and changed the url. Thus I have lost the ability
   to log in, and the blog has lost all its formatting, etc.
 * I found this article and wondered if one of these is the way to fix it:
    [http://codex.wordpress.org/Changing_The_Site_URL](http://codex.wordpress.org/Changing_The_Site_URL)
 * I have tried a couple of the options, but I don’t know where in the ftp file 
   I should make corrections. Any help would be appreciated.

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/help-changed-url-accidentally/#post-1335619)
 * That’s the right solution but you need to be editing your wp-config.php file.
   You can add the lines suggested to the bottom of the file – just before the `?
   >`. You then need to upload the amended file to your site using FTP.
 *  Thread Starter [abbycookie](https://wordpress.org/support/users/abbycookie/)
 * (@abbycookie)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/help-changed-url-accidentally/#post-1335632)
 * Thanks so much. I’ve been hours on this. I found the wp-config.php file, but 
   there is no ?>
 * Here is the full file content. Where should I make the changes?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/help-changed-url-accidentally/#post-1335638)
 * Then just add the two lines at the very end of the file – after `require_once(
   ABSPATH . 'wp-settings.php');`.
 *  [alism](https://wordpress.org/support/users/alism/)
 * (@alism)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/help-changed-url-accidentally/#post-1335641)
 * Ok, posting your username, database name and *password* isn’t (hopefully) the
   smartest thing that you’ve done today. 🙂
 * Probably best you change that now…
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/help-changed-url-accidentally/#post-1335644)
 * Whoah! I completely missed that! Well spotted…
 *  Thread Starter [abbycookie](https://wordpress.org/support/users/abbycookie/)
 * (@abbycookie)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/help-changed-url-accidentally/#post-1335646)
 * Sorry. Fixed it. I’ll give this a try.
 *  Thread Starter [abbycookie](https://wordpress.org/support/users/abbycookie/)
 * (@abbycookie)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/help-changed-url-accidentally/#post-1335704)
 * Hi, Esmi! I am not able to get the site back up. Would you be able to fix it 
   for me if I provide the UN and PW? I’d really appreciate it.
 *  [marketminder](https://wordpress.org/support/users/marketminder/)
 * (@marketminder)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/help-changed-url-accidentally/#post-1335761)
 * If just spent 3 days building my site in WP and than did the same you did but
   on my local server still. Want let me back in. So if the files are still on my
   local server what do i need to do to get back into site? keeps telling me “wrong
   password”or wrong user. and if I press link i saved to desktop just get 404. 
   Was jsut getting ready to FTP. Argh
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/help-changed-url-accidentally/#post-1335829)
 * [@abbycookie](https://wordpress.org/support/users/abbycookie/): Did you try both
   of the methods outlined in [http://codex.wordpress.org/Changing_The_Site_URL](http://codex.wordpress.org/Changing_The_Site_URL)?
   What happened when you uploaded the edited wp-config.php file? Contact me via
   esmi at quirm dot net if you’re still having problems.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/help-changed-url-accidentally/#post-1335830)
 * [@marketminder](https://wordpress.org/support/users/marketminder/): see the link
   above.

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

The topic ‘Help! Changed URL accidentally’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 4 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/help-changed-url-accidentally/#post-1335830)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
