Title: WordPress multisite modify site ID
Last modified: January 29, 2022

---

# WordPress multisite modify site ID

 *  [lumos](https://wordpress.org/support/users/lumos/)
 * (@lumos)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/wordpress-multisite-modify-site-id/)
 * Hi, I created a multisite installation with 3 sites (main (ID1), second (ID2)
   and third (ID3).
    I want to change (swap) the ID between the second and third
   sites so the second become (ID3) and the third become (ID2) on the database. 
   Obviously I’ll swap also the content directories inside the wp-content/uploads/
   sites directory changing the name from 2 to 3 and the 3 to 2.
 * Basically I don’t know what tables to modify inside the database.
 * Please, can anyone tell me how can I do this?
 * Thanks

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

 *  [a2hostingrj](https://wordpress.org/support/users/a2hostingrj/)
 * (@a2hostingrj)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/wordpress-multisite-modify-site-id/#post-15312076)
 * This seems like a bad idea.
 *  [Alex de Borba](https://wordpress.org/support/users/alexdeborba/)
 * (@alexdeborba)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/wordpress-multisite-modify-site-id/#post-15315645)
 * Hello [@lumos](https://wordpress.org/support/users/lumos/), I hope all is well
   with you.
 * Changing sites ID is rather complicated as it will require you to edit the IDs
   using MySQL and have some skills, however the easiest way to reset the IDs would
   be to recreate the sites and re-import the content.
 * Perhaps this article on [Can I change the exporting Blog ID to another site importing blog ID?](https://codexonics.com/prime_mover/prime-mover/can-i-change-the-exporting-blog-id-to-another-site-importing-blog-id/)
   would be of help for you to get it done quickly.
 * I hope that helps.
 *  Thread Starter [lumos](https://wordpress.org/support/users/lumos/)
 * (@lumos)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/wordpress-multisite-modify-site-id/#post-15315721)
 * Thank you [@alexdeborba](https://wordpress.org/support/users/alexdeborba/)!

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

The topic ‘WordPress multisite modify site ID’ is closed to new replies.

## Tags

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

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 3 replies
 * 3 participants
 * Last reply from: [lumos](https://wordpress.org/support/users/lumos/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/wordpress-multisite-modify-site-id/#post-15315721)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
