Title: Changing the hostname
Last modified: August 18, 2016

---

# Changing the hostname

 *  [med1972](https://wordpress.org/support/users/med1972/)
 * (@med1972)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/changing-the-hostname/)
 * I want to change the hostname of one of the blogs I am hosting. When the blog
   was installed it was, this is just an example, blog1.foo.com. I want to rename
   it to blog2.foo.com. I’ve made the necessary changes in Apache so blog2.foo.com
   resolves to the blog in question, but within the blog content itself all the 
   links still reference blog1.foo.com. It still works since I both names resove
   to the same content. I am assuming that the name blog1.foo.com is in the database.
   Is there some way I can change this?
 * Mark

Viewing 1 replies (of 1 total)

 *  [michael_](https://wordpress.org/support/users/michael_/)
 * (@michael_)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/changing-the-hostname/#post-327472)
 * I have always a similar problem if I copy my WP to loalhost:
    In table ‘wp_options’,
   alter the fields ‘siteurl’ and ‘home’.
 * Michael

Viewing 1 replies (of 1 total)

The topic ‘Changing the hostname’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [michael_](https://wordpress.org/support/users/michael_/)
 * Last activity: [20 years, 2 months ago](https://wordpress.org/support/topic/changing-the-hostname/#post-327472)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
