When you install WordPress Mu, it warns you:
Please choose whether you would like blogs for the WordPress µ install to use sub-domains or sub-directories. You can not change this later. We recommend sub-domains.
Itās true thereās no documented way to change this setting, and the current advice is to reinstall (!), but I aim to change that. Instead of reinstalling plugins, reconfiguring plugins, and then powering through the nightmare that is WordPress export->import, I resolved to find whatever setting was buried in WordPress and do it manually. And lucky for me, it turned out to be surprisingly easy.
Iād originally set up adamwulf.me to use subdomains for my Mu installation, but I decided recently that subdirectories would make much more sense. After all, Iām using Mu to power my one site, and subdomains feel like lots of separate sites. In retrospect, installing Mu as subdomains was the wrong decision.
So during some downtime in the āole ICU last month, I decided to see if this werenāt, in fact, a solvable problem, and it turns out itās a pretty easy fix.
Step 1: Backup your database and config file
Iāve always subscribed to the āprotect my data from my #1 enemy: me!ā mentality.
Step 2: change each blogās URL
In the admin console, go to the blogs page.

For each blog, click the edit link to edit that blogās details. Youāll want to edit the following fields to all be consistent with the new location you want each blog:
- Domain
- Path
- Siteurl
- Home
- Fileupload Url
For instance, I used to have one of my blogs set up at http://page2.adamwulf.me/ but I moved it to /notes/. To do that, I changed the Domain from āpage2.adamwulf.meā to just āadamwulf.meā and the Siteurl from just ā/ā to ā/notes/ā. I similarly updated all of the other fields for that blog.
Step 3: Update wp-config.php
Thereās one line in the wordpress config file that tells Mu to use subdomains instead of subdirectories. Change:
define('VHOST', 'yes');
to:
define('VHOST', 'no');
Step 4: Update httpd.conf
If youāve set up Mu to use subdomains, then you need to undo your wildcard subdomain setup in your httpd.conf. MattĀ Mullenweg has a great post explaining how to create the wildcard domain in the conf, so if youāre trying to go from subdirectories to subdomains itās a great read.
If youāre going from subdomains to subdirectories (like me), just remove the wildcard domain from your httpd.conf and restart apache.
Make sure (of course!) that you still have a virtual host defined for your actual siteās domain. It should look something like:
ServerName adamwulf.me
ServerAlias www.adamwulf.me
DocumentRoot /home/internet/public_html/welcome
ServerAdmin webmaster@adamwulf.me
UseCanonicalName Off
Optional Step 5: Redirect from old subdomain to new subfolder
Good SEO tells you to redirect a URL you move to itās new location with a 301 redirect header. To do that, I first setup a subdomain in CPanel that matched the blogās old subdomain location. Then I just edited the .htaccess file for that subdomain to point all incoming traffic to the new URL. The .htaccess for page2.adamwulf.me is now:
RewriteEngine On
RewriteBase /
RewriteRule ^(.*) /notes/$1 [R=301,QSA,L]
Conclusion
It turns out resetting WordPress Mu to use subdirectories instead of subdomains isnāt all that bad! And Iād imagine that moving from subdirectories to subdomains requires near identical steps.
Hope this helps you out ā itās certainly saved me from a reinstall hell! š