Title: Changed WordPress URL
Last modified: August 30, 2016

---

# Changed WordPress URL

 *  [Siddycent](https://wordpress.org/support/users/siddycent/)
 * (@siddycent)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/changed-wordpress-url-3/)
 * I changed the WordPress URL to netw8rk.com/wp and it has destroyed my site and
   I am unable to access any of the dashboard to correct….any help would be massively
   appreciated….

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

 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/changed-wordpress-url-3/#post-6464521)
 * You should be able to fix that fairly easily by temporarily adding some code 
   either near the top of wp-config.php or in your active theme’s functions.php:
 * Select and edit one pair of lines or the other, then temporarily place a slash
   after `/*toggle on/off*` just above them to un-comment them.
 *     ```
       /*-either-*/
       /* tell database to recognize and use http://netw8rk.com
       /** @ near top of wp-config.php /*toggle on/off*/
       define('WP_HOME','http://netw8rk.com');
       define('WP_SITEURL','http://netw8rk.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-*/
       ```
   
 *     ```
       /*-either-*/
       /* tell database to recognize and use http://netw8rk.com
       /** @ near top of theme functions.php /*toggle on/off*/
       update_option('siteurl','http://netw8rk.com');
       update_option('home','http://netw8rk.com');
       /*-or-*/
       /** @ near top of theme/functions.php /*toggle on/off*
       update_option('siteurl','http://www.domain.com');
       update_option('home','http://www.domain.com');
       /*-end-*/
       ```
   
 * edit: I just made the edit for you, so the above are good-to-go.
 *  Thread Starter [Siddycent](https://wordpress.org/support/users/siddycent/)
 * (@siddycent)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/changed-wordpress-url-3/#post-6464531)
 * That is amazing – it worked!!!
 * Thank you so much for your help!!!!
 * Do I now need to delete that code or do I just leave it there?
 * Thanks again…… I felt sure I was doomed.
 * Kind regards,
 * Dudley
 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/changed-wordpress-url-3/#post-6464536)
 * You can leave it there, if you wish, just remove the slash from the end of `~
   ~~/*toggle on/off*/` to turn those lines back to inactive comments.

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

The topic ‘Changed WordPress URL’ is closed to new replies.

## Tags

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

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

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
