I have a sudomain-based WPMU installation locally with xampp. My vhosts lists domains like follows: mainDomain.com siteA.mainDomain.com siteB.mainDomain.com siteA.com siteB.com

The WordPress MU Domain Mapping PlugIn maps "real-domains" on system-subdomains.

To have a standard project structure, I would like to move my installation from the documentRoot to a subfolder.

My question is, what do I need to do, to accomplish that and will it have any consequences for the compatibility between my local- and a live-system?


Multisite cannot be installed in a subdirectory of the document root currently. This will be possible in 3.5.

See Multisite on Windows with wildcard subdomains for a guide how to manage subdomains automatically on Windows with XAMPP. You can move the plugin directory to another directory per wp-config.php. This is possible for themes too, but automatic theme upgrades will fail currently.

  • Thx for your help. Simple question: I am fine adding DocumentRoot "C:/xampp/htdocs/maindomain/" to my apache httpd.conf, which will keep my htdocs clean. This won't have any implications on the system, right? – SunnyRed Nov 22 '12 at 13:08
  • 1
    I wouldn’t put website files into the XAMPP directory. Makes upgrades and backups too difficult. Keep software and data separately. I am running XAMPP in E:\xampp, and WordPress in E:\wordpress.latest.final. Uploads are in F:\sites\uploads.wp\mu, plugins and themes in F:\Dropbox\wp-content. F:` is for data, E:` for software. – fuxia Nov 22 '12 at 14:28
  • Thanks. Do you know of an extra resource, how to set this up the right way? – SunnyRed Nov 22 '12 at 15:27
  • 1
    No, sorry. I should write this up some day. – fuxia Nov 22 '12 at 15:31
  • Np, ..but looking forward to it :) However, thanks for your hints! – SunnyRed Nov 22 '12 at 15:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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