Title: Changed WP Address
Last modified: August 19, 2016

---

# Changed WP Address

 *  [dpalmer](https://wordpress.org/support/users/dpalmer/)
 * (@dpalmer)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/changed-wp-address/)
 * Help! I was trying to make the title of the blog link to the main website, changed
   it in the general settings and now the blog is blown up!
 * Once I changed it and saw I had a problem, I did go back in and change it back
   to the blog address….but it did not help.
 * Can anyone tell me what I can do to get the blog working right again?
 * [http://www.pinkymckay.com.au/blog](http://www.pinkymckay.com.au/blog) is the
   address where I have it loaded and configured.
 * Thanks,
    K

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

 *  Thread Starter [dpalmer](https://wordpress.org/support/users/dpalmer/)
 * (@dpalmer)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/changed-wp-address/#post-898055)
 * Found a “fix”. It worked, except that it did not save all of my widget mods…which
   I can live with! Here’s what I followed:
 *  Quick fix method
 * If you have access to the site via FTP, then this method will help you quickly
   get a site back up and running, if you changed those values incorrectly.
 * 1. FTP to the site, and get a copy of the active theme’s functions.php file. 
   You’re going to edit it in a simple text editor (like notepad) and upload it 
   back to the site.
 * 2. Add these two lines to the file, immediately after the initial “<?php” line.
 * update_option(‘siteurl’,’[http://example.com/blog&#8217](http://example.com/blog&#8217););
   
   update_option(‘home’,’[http://example.com/blog&#8217](http://example.com/blog&#8217););
 * Use your own URL instead of example.com, obviously.
 * 3. Upload the file back to your site, in the same location. FileZilla offers 
   a handy “edit file” function to do all of the above rapidly, if you can use that,
   do so.
 * 4. Load the login or admin page a couple of times. The site should come back 
   up.
 * 5. Repeat the above steps, but remove those lines. IMPORTANT: Do NOT leave those
   lines in there. Remove them immediately after the site is up and running again.
 * If there is no functions.php file in the theme: Create a new text file called“
   functions.php”. Edit it with notepad, and add this text to it, using your own
   URL instead of example.com:
 * <?php
    update_option(‘siteurl’,’[http://example.com/blog&#8217](http://example.com/blog&#8217););
   update_option(‘home’,’[http://example.com/blog&#8217](http://example.com/blog&#8217););
 * Upload that to your theme directory, then proceed as stated above. Remove the
   file afterwards.
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/changed-wp-address/#post-898056)
 * thats straight out of the codex.
 * [http://codex.wordpress.org/Changing_The_Site_URL](http://codex.wordpress.org/Changing_The_Site_URL)

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

The topic ‘Changed WP Address’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [whooami](https://wordpress.org/support/users/whooami/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/changed-wp-address/#post-898056)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
