Title: Changing Hostname
Last modified: August 19, 2016

---

# Changing Hostname

 *  [gnosis_wp](https://wordpress.org/support/users/gnosis_wordpress/)
 * (@gnosis_wordpress)
 * [16 years ago](https://wordpress.org/support/topic/changing-hostname/)
 * I am slightly confused by the following information because no emphasis on which
   is the best method to change the site URL/hostname.
 * When I go live, I will be changing the hostname(domain name) on the server, but
   not moving the files. So the box will be changed from example2.edu (development)
   to example.edu (production).
 * I am trying to figure out the following page which presents several options, 
   but does not really suggest relevance and differences and or best method:
    [http://codex.wordpress.org/Changing_The_Site_URL](http://codex.wordpress.org/Changing_The_Site_URL)
 * Do I need to change in wp-cofig:
    WP_SITURL WP_HOME More info: [http://codex.wordpress.org/Editing_wp-config.php#WordPress_address_.28URL.29](http://codex.wordpress.org/Editing_wp-config.php#WordPress_address_.28URL.29)
 * and then follow Relocate Method:
    [http://codex.wordpress.org/Changing_The_Site_URL#Relocate_method](http://codex.wordpress.org/Changing_The_Site_URL#Relocate_method)
 * Do I need to edit functions.php:
    [http://codex.wordpress.org/Changing_The_Site_URL#Edit_functions.php](http://codex.wordpress.org/Changing_The_Site_URL#Edit_functions.php)
 * Do i need to change the URL directly in the database:
    [http://codex.wordpress.org/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database](http://codex.wordpress.org/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database)
   and or: [http://codex.wordpress.org/Changing_The_Site_URL#Domain_Name_Change](http://codex.wordpress.org/Changing_The_Site_URL#Domain_Name_Change)
 * Maybe we should not have a hostname for the website, while in development so 
   when we turn IP address live (production) and apply [http://example.edu](http://example.edu)
   to server, wordpress will not need updating. However, I do not want to develop
   links with IPs because these will not be usable to our users.
 * Any insight would be helpful.
 * Here are some additional potentially helpful info links:
    [http://www.velvetblues.com/web-development-blog/how-to-move-a-wordpress-blog-or-website/](http://www.velvetblues.com/web-development-blog/how-to-move-a-wordpress-blog-or-website/)
   [http://www.seoblogr.com/social/how-to-move-wordpress-blog-from-old-domain-to-new-domain-with-301-permanent-redirection/](http://www.seoblogr.com/social/how-to-move-wordpress-blog-from-old-domain-to-new-domain-with-301-permanent-redirection/)
   [http://www.mydigitallife.info/2007/10/01/how-to-move-wordpress-blog-to-new-domain-or-location/](http://www.mydigitallife.info/2007/10/01/how-to-move-wordpress-blog-to-new-domain-or-location/)
   [http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory](http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)
   [http://codex.wordpress.org/Moving_WordPress](http://codex.wordpress.org/Moving_WordPress)
   [http://codex.wordpress.org/Editing_wp-config.php#WordPress_address_.28URL.29](http://codex.wordpress.org/Editing_wp-config.php#WordPress_address_.28URL.29)
   [http://wordpress.org/extend/plugins/domain-change/](http://wordpress.org/extend/plugins/domain-change/)
   [http://silentbits.com/wordpress/howto-change-domain-blog/](http://silentbits.com/wordpress/howto-change-domain-blog/)
   [http://yoast.com/move-wordpress-blog-domain-10-steps/](http://yoast.com/move-wordpress-blog-domain-10-steps/)
   [http://www.tamba2.org.uk/wordpress/site-url/](http://www.tamba2.org.uk/wordpress/site-url/)
   [http://wordpress.org/extend/plugins/search-and-replace/](http://wordpress.org/extend/plugins/search-and-replace/)
 * Thank you.

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

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [16 years ago](https://wordpress.org/support/topic/changing-hostname/#post-1471343)
 * you can use any _one_ of the above methods
 * this one is easy enough
 *     ```
       Do I need to change in wp-cofig:
       WP_SITURL
       WP_HOME
       ```
   
 *  [paul b](https://wordpress.org/support/users/paul-b/)
 * (@paul-b)
 * [16 years ago](https://wordpress.org/support/topic/changing-hostname/#post-1471417)
 * recently charge my server a did not do a back up for my word press web site it
   is not longer showing on google how do i get it back
 *  Thread Starter [gnosis_wp](https://wordpress.org/support/users/gnosis_wordpress/)
 * (@gnosis_wordpress)
 * [16 years ago](https://wordpress.org/support/topic/changing-hostname/#post-1471476)
 * samboll,
 * Have you performed the method of editing config file? Because I tried it and 
   it didn’t alter values in wp_options and wp_posts in database.

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

The topic ‘Changing Hostname’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 3 participants
 * Last reply from: [gnosis_wp](https://wordpress.org/support/users/gnosis_wordpress/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/changing-hostname/#post-1471476)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
