WPMU – No Symlinks!

WordPressMU uses symlinks to do the multi-blog thing. Blogs names are linked to in a “blogs” directory (avoids having the root directory writeable by the webserver!) which makes life easier on me writing mod_rewrite rules for various reasons.
Unfortunately, that requirement means that PHP has to be able to symlink directories which isn’t possible all the time due to security settings on servers. Therefore, here’s two htaccess.dist files that you can drop into your WPMU installation, then run your installation again (delete the existing .htaccess files)
Put this htacess.dist in the root directory:
(If you’ve downloaded this file already, grab it again. I updated it so wp-login.php works, and wp-images show in the backend!)

Rename this and copy it to wp-inst/htaccess.dist:

Delete the existing .htaccess and wp-inst/.htaccess and the install will run when you visit the root URL of your blog. You can delete the “blogs” directory too if you like! (Make a backup first though!)

By Donncha

Donncha Ó Caoimh is a software developer at Automattic and WordPress plugin developer. He posts photos at In Photos and can also be found on Twitter.

3 replies on “WPMU – No Symlinks!”

Perhaps I’m missing the point but I don’t really see how WPMU is any different than the normal WP install. I use the normal WP and have multiple authors and users without a problem. What is the difference, if you don’t mind?


Leave a Reply