WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

migrated from serverfault.com Jun 28 '13 at 17:10

This question came from our site for system and network administrators.

Is www.mysite.com the first site in your multisite setup? – Zypher Jun 28 '13 at 14:43
@Zypher yes www.mysite.com is the first site in my multisite setup – Antonio Giungato Jun 28 '13 at 16:27
So you did a subdirectory site and not a subdomain site? – Michael Hampton Jun 28 '13 at 16:28
@MichaelHampton yes it's a subdirectory site – Antonio Giungato Jun 28 '13 at 17:01
If this is possible, it will have to be done within WordPress. – Michael Hampton Jun 28 '13 at 17:10
up vote 1 down vote accepted

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.

share|improve this answer
I'll try that and let you know. Thanks! – Antonio Giungato Jun 29 '13 at 22:55
Thanks Pat J, this worked (almost) fine! – Antonio Giungato Jul 2 '13 at 10:00

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.

share|improve this answer
Thanks. I'm wondering if I do this what will happen to the "network of sites" i created with Wordpress Multisite – Antonio Giungato Jun 28 '13 at 15:23
In Multisite, /anothersite doesn't have a folder on the server; it's a fiction maintained by WordPress rather than an actual location. – Pat J Jun 29 '13 at 14:49

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

share|improve this answer
In Multisite, /anothersite doesn't have a directory. – Pat J Jun 29 '13 at 14:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.