How to move a WordPress multisite?

I have a WP multisite installation like this:

  1. www.mysite.com
  2. www.mysite.com/anothersite

Now, I’d like to move www.mysite.com/anothersite to be www.mysite.com.
Is it possible?

Related posts

3 comments

  1. You should be able to export www.mysite.com/anothersite to a WXR file using Tools » Export in your WordPress backend — www.mysite.com/anothersite/wp-admin. Then you can go to www.mysite.com/wp-admin, remove the existing content (delete your existing posts / pages / etc — export them first if you want/need a backup) and then use Tools » Import to import the WXR file.

  2. Sure, all you need to do is change your web server’s configuration to point www.mysite.com to the folder where www.mysite.com/anothersite resides.

  3. Yep, change the DocumentRoot of mysite.com so that points to the directory where are stored the files of anothersite, and restart the webserver.

Comments are closed.