To Move Wordpress Mu To Another Directory or Upper Directory
How can I move wordpress mu installation out of its original directory to another directory or to upper level of directory? I tried to do this once, but it broke the already installed wordpress mu.
Can any experienced wordpress mu user here gives me a detailed instruction of what to edit, to move, to protect, and to change settings in specific files and folder in order for the moving of wordpress mu installed directory to work correctly? Thanks...
Everyday at WPMU DEV we help hundreds of WP Users. Become a member today to:
- Download 250+ Premium Plugins and Themes
- Get unlimited support from WordPress Experts
- Get help with your WordPress or BuddyPress projects
Help & Support from WPMU DEV members and staff
Hiya,
WPMU should always be installed in the root directory of a domain/subdomain.
Thanks,
Andrew
Move the files where you want (preferably the root), and then you will have to edit the URL in the database in a few areas.
Get personal, comprehensive and timely support and assistance
from WordPress Experts
I edit all the URLs in the database. It is working fine now, but I fear when I upgrade to a newer version of wpmu, the settings might be screwy, as I don't remember which files in the wp-content, wp-includes, wp-admin, and other files to edit the correct URLs. The truth is that beside editing the URL in the database, I did an edit with wp-config.php and changed the base to the correct URL. What else do I have to do to ensure a complete URL transition?
The URL is only stored in the database and the config file, that's it.
It is NOT hardcoded anywhere in any of the files under those directories. They all grab the URL from the database. If it works fine for you now, it should work fine after an upgrade.
Me thinks you've forgotten the .htaccess file, Andrea.
But other than that, that should do it.
- Database
- wp-config (base setting, should be /)
- htaccess (rewrite base, should also be /)
- wp-config (base setting, should be /)
- htaccess (rewrite base, should also be /)
Assuming of course that you do have it installed in the root of the site in question.
Get personal, comprehensive and timely support and assistance
from WordPress Experts
Yep, yep I did forget...
I should probably write this all down. Like in a blog or something.
Hmm, i wonder where you could find one of those...
WPMU should always be installed in the root directory of a domain/subdomain.
I have mediawiki, textpattern, and wpmu all running on the same box. I don't think all their files can just live in the root directory.
Plus, it's a lot cleaner to have a /wpmu/ folder off the root.
I found this post that talks about using a redirect in the .htaccess file.
RewriteCond %{HTTP_HOST} !^www.domain.com
RewriteCond %{REQUEST_URI} !^/mu-directory
RewriteRule ^(.*) /mu-directory/$1 [L]
drmike says this would kill the server. Is that right? I don't understand the additional load this would add...
Hiya,
I'm afraid we really don't support installing WPMU in a directory. It really does need to be installed in the root directory of a domain or subdomain.
Thanks,
Andrew
Get personal, comprehensive and timely support and assistance
from WordPress Experts
Should we start moving these into the general help forums now?
Yep :)
Thanks,
Andrew




