Title: Migrating sub domain
Last modified: February 1, 2024

---

# Migrating sub domain

 *  [skamaz2020](https://wordpress.org/support/users/skamaz2020/)
 * (@skamaz2020)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/migrating-sub-domain/)
 * Hi i am developing a site in a sub domain of my main site and i want to swap 
   them so that the sub domain becomes the main domain and the main domain becomes
   old.maindomain. My main site is currently in the root directory of my host and
   the sub domain is a folder under it, how will i be able to do that?
 * maindomain.com -> old.maindomain.com
 * new.maindomain.com -> maindomain.com
    -  This topic was modified 2 years, 2 months ago by [skamaz2020](https://wordpress.org/support/users/skamaz2020/).

Viewing 1 replies (of 1 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/migrating-sub-domain/#post-17392141)
 * You can move WordPress by following these steps: [https://developer.wordpress.org/advanced-administration/upgrade/migrating/#moving-directories-on-your-existing-server](https://developer.wordpress.org/advanced-administration/upgrade/migrating/#moving-directories-on-your-existing-server)

Viewing 1 replies (of 1 total)

The topic ‘Migrating sub domain’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 3 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/migrating-sub-domain/#post-17392141)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
