WordPress MU Subdomain Forwarding

This plugin turns a vanilla WordPress MU install into a subdomain forwarding/mapping site. It gives each user a subdomain and allows path forwarding to an external site, a hosted blog and/or a hosted profile. Meta tags, keywords and path forwarding to external sites are all supported.

Users should go to Dashboard->Subdomain to edit subdomain settings and activate/deactivate the blog and profile. The public profile can be edited at Users->Public Profile. The admin for the plugin is at Site Admin->Subdomain Forwarding.

Please read the FAQ and Known Issues/Limitations sections before installing the plugin.

Requires at least: WordPress MU 2.7
Tested up to: WordPress MU 2.7

Frequently Asked Questions

Does this work with with both subdomain and subdirectory installs?

No it only works with VHOST (subdomain) installs. A version for subdirectories is in the works.

Can one user have more than one subdomain?

Not with this version (0.1). A version with support for multiple subdomains is in the works.

Will a blog be created for every user?

No, the script just assigns a subdomain to the user but the user can sign up for a blog if he/she wants to.

Will this plugin make any modifications to my database?

Yes, one database table will be created for storing the subdomain settings. The profile page settings will be stored with the user meta. The plugin also modifies the blog path in the blogs table if necessary. All other core WordPress MU tables are not touched.

Known Issues/Limitations

As this is a very early version there are a couple of minor issues that haven’t been overcome yet:

  • Users with blogs who try to login from the main site will have to login twice before they can access their control panel. This is due to some issues with the cookies that I have not been able to deal with just yet.
  • The username field will be used as the subdomain. Users cannot yet choose a custom subdomain name.
  • One user can only have one subdomain. Multiple subdomains are not supported yet.
  • This version will only work with one domain name. It has not been tested on sites that have been setup with more than one domain name.
  • This plugin works with VHOST installs only.
  • Users will have to sign up for a normal account before they can get a blog.
  • I’ve only tested this with clean installs so I’m not sure if it will work with a current install without modifying the database in some way.
  • Currently, only users who sign up after the plugin is installed will get a subdomain. Again, I do not reccommend installing this version on a current install as it could cause problems.



If you download this plugin (as I hope you will) please drop me a line at joe@hazardcell.com or via the contact form with feedback/suggestions/complaints/bugs/your website URI/just to say hi!



Please read the FAQ and Known Issues/Limitations sections before installing the plugin

  • First, you have to ensure that you have a fully working WordPress MU VHOST install.
  • Upload subdomain_forwarding.php to the /wp-content/mu-plugins/ directory.
  • Upload sunrise.php to the /wp-content/ directory. If there already is a sunrise.php there, you will have to merge the files.
  • Edit wp-config.php and uncomment the SUNRISE definition line: define( 'SUNRISE', 'on' );
  • Edit the .htaccess file in your WPMU root directory and insert the following line at the bottom of the file after any rewrite rules: ErrorDocument 404 /index.php
  • Login as the site admin and visit Site Admin->Subdomain Forwarding and edit the options there.
  • Visit Site Admin->Options and enable new registrations for user accounts only. The blog sign up will be handled by the plugin.


Copyright © 2009 Joseph Jacobs

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.


I would like to thank the following parties who contributed to this project in some way or another:

10 thoughts on “WordPress MU Subdomain Forwarding

  1. […] WordPress MU Subdomain Forwarding […]

  2. Argado says:

    I like this plugin but i still confuse to use it!

    • Joe Jacobs says:

      It was written for a specific purpose ie. the subdomain that is allocated to the user isn’t immediately allocated as the blog address. If the user wants he can forward the subdomain to another website and the blog to a subdirectory on that subdomain or vice versa. I don’t recommend you use it as it hasn’t been updated since the initial release and probably doesn’t work for newer versions of WordPress. I also have no plans, at the moment, to update this plugin or develop it any further.

  3. Asshu says:

    I just saw this plugin and I will test it with WP 3.0.4.
    I hope it works with 3.0.4 and will not rise any bugs like yet-another-multi-site-manager/

    Thanks Joe

    • Joe Jacobs says:

      I’m afraid it will raise warnings. This plugin was designed for an extremely old version of wordpress. Hasn’t been updated in a long while and I have no plans to do so. It definitely will not work with the current version of wordpress

  4. Tomasz says:


    It seems your are the right guy to ask.
    Could you please help me in my problem.

    There is place on a page with general contact data (email, mobile).

    I’d like to prepare this part depending on a user under different subdomain, i.e. http://www.formore.pl displays general contact data http://www.user1.formore.pl displays contact data of user1 http://www.user2.formore.pl displays contact data of user2

    Do you have any idea what’s the best way to do it? Thanks in advance for any help

    • Joe Jacobs says:

      Hey Tomasz

      I don’t know of a plugin that does exactly what you want. This plugin does something similar but it is probably too complex for what you want to do (and it also doesn’t work with recent versions of WordPress). You probably want a custom written plugin. If you need a more detailed answer send me an email (via the contact page on my site).


  5. Tomasz says:

    Hi Joe
    It seems not only me has wonder how to resolve it 🙂 I found very useful miniMU plugin http://wordpress.org/support/plugin/minimu that supports one blog with different subdomains, what I need. You just need to turn on wildcard on your hosting account to make different domains work.

Leave a Reply

%d bloggers like this: