Offer sites with unlimited and different domain options from a single Multisite installation.


  • Amended: sunrise inclusion


September 24, 2014 - version
  • Amended: sunrise inclusion

September 21, 2014 - version
  • Changed how sunrise is maintained

April 21, 2014 - version
  • Deprecated multi_domain::restore_current_site()
  • Fixed bug with outgoing emails on new site creation

April 17, 2014 - version 1.3.4
  • Added sso for logging to main domain from secondary domains

April 10, 2014 - version 1.3.3
  • Added Multidomains_Sso
  • Fixed cross domain single signon issue
  • Fixed cross blog single signon issue

January 14, 2014 - version 1.3.2
  • Fixed site creation issue which appears when create a site via admin dashboard.

November 26, 2013 - version 1.3.1
  • Reworked network admin domains page
  • Improved performance for case when a lot domains are added
  • Fixed minor issues
  • Fixed sunrise.php compatibility issue
  • Integrated new WPMUDEV dashboard notifications class

October 31, 2013 - version 1.3
  • Reworked the multi-domains plugin to work from plugins directory
  • Implemented functionality to auto copy/upgrade sunrise.php file

July 5, 2013 - version 1.2.3
  • Updated the sunrise.

May 31, 2013 - version 1.2.2
  • Updating sunrise.
  • Forcing empty values existence.

November 19, 2012 - version 1.2.1
  • Placement script scoping.
  • Blog selection issue fix.

August 13, 2012 - version 1.2
  • Domains site search.
  • Stuck transients issue fix.
  • BuddyPress cross-domain login issue fix.

January 14, 2012 - version 1.1.6
  • Better selection block placement.

October 13, 2011 - version 1.1.5
  • Fix for new site creation on sub-blogs.

May 17, 2011 - version 1.1.4
  • Fix for re-auth required on first login issue.

January 19, 2011 - version 1.1.3
  • Enhancement: performance improvements
  • Bug fix: incorrect domain used on site creation in network admin

January 15, 2011 - version 1.1.2
  • New Feature: Option to enable/disable single sign-on

January 14, 2011 - version 1.1.1
  • Enhancement: 3.1+ compatibility
  • Enhancement: Allow disabling cross domain login with a constant

December 19, 2010 - version 1.1
  • Enhancement: More extensible code with new hooks and structure
  • Bug fix: Allow www in mapped domain name

November 14, 2010 - version 1.0.9
  • Bug fix

November 10, 2010 - version 1.0.8
  • Enhancements and bug fixes

October 24, 2010 - version 1.0.7
  • Bug fix, added check for COOKIE_DOMAIN in sunrise.php

October 16, 2010 - version 1.0.6
  • Bug fixes, domains now stored in alphabetical order

October 10, 2010 - version 1.0.5
  • Bug fixes

October 4, 2010 - version 1.0.4
  • Bugfixes

September 20, 2010 - version 1.0.3
  • Fixed issue with blog registration on subdomains installs

September 6, 2010 - version 1.0.2
  • Bug fixes

September 1, 2010 - version 1.0.1
  • Many bugfixes, full BP support, pot file added

September 1, 2010 - version 1

    Downloads 26,285

    Compatibility Multisite 4.1.1 BuddyPress 2.2.1

    "WPMU DEV has created plugins that have transformed my business"

    Andrew Shanahan

    multi-domains allows you to run an unlimited number of different domains from one WordPress Multisite installation.

    Easily create blogs at alternative domains to your main site or give your users the option to choose the domain they prefer.

    Add value to your Multisite network

    Quickly and easily provide multiple network URLs on just one WordPress install.

    Just install and activate Multi-Domains and enter as many domains as you like. They will automatically be added to your signup and new blog creation forms.

    Users logged into one domain will also be automatically signed on to other domains in your network.

    You choose whether to make your domains:
    • Public – to be used by any user, or
    • Private – to be used by super admins

    Add and removing domains is simple.

    Combine with other WPMU DEV products

    Integrate Multi-Domains with Domain Mapping by WPMU DEV for even more control over your URLs. The plugin combination will also allow you to map individual blog set up on different domains to their own dedicated URLs.

    Multi-Domains Settings
    Easily add new domains to your network and give users the flexibility of address options

    Give users on your network a choice. Make more domains available with Multi-Domains.

    Please note: Multi-Domains is for sub domain installations only and will not work well for subdirectory installations.

    Other important notes:

    • As of Multi-Domains version 1.3, it is no longer necessary to manually install the plugin in the mu-plugins folder. Woot! If you have an older version in that folder now, please remove it.
    • It is also no longer necessary to manually update the sunrise.php file as that is now done automatically. :)
    • Finally, if you are also using our Domain Mapping plugin, be sure that it is at least version 4.0.3.

    To Get Started

    Start by reading Installing plugins section in our comprehensive WordPress and WordPress Multisite Manual if you are new to WordPress.

    Once installed and network-activated, you will see a new menu item in the Network Settings menu.

    Multi-Domains Menu

    Configuring the Settings

    The first thing you need to do is add a constant to your wp-config.php file.

    Please copy the sunrise.php from the plugin folder /FOLDER-PATH/wp-content/plugins/multi-domains/sunrise.php into /FOLDER-PATH/wp-content/sunrise.php

    Then open your wp-config.php file (normally located in the root of your install) and please uncomment or add (if not available) the following code just before the line that says “That’s all, stop editing!”:

    define( 'SUNRISE', 'on' );


    Please ensure that you type this and not just copy and paste. Take care to use single quotes and not back-ticks.

    Save and re-upload that file.

    Now head over to the Multi-Domains page in your Network Admin area at Settings > Multi-Domains

    Multi-Domains Settings

    There, you can add all the domain names you want to include in the selection for new sites in your network.

    Simply enter the name, select Public or Private, and click Add Domain. Done.

    Note that domains set to Private will be available to the network admins only. Domains set to Public will be displayed on your user and blog registration pages.

    Bonus! If you have the New Blog Templates plugin installed, you can also select which template to use for each domain. Cool huh?

    The final step is domain name configuration in your hosting to make sure the blogs created work.

    Domain Configuration

    In the DNS records for each domain added, add a wildcard subdomain that points to the IP of your WordPress multisite.

    You simply need to add an “A” Record by entering an asterisk for the name, and the IP of your multisite for the address.

    For example, here’s a domain configured with a wildcard subdomain through cPanel:


    Deleting Previously Added Domains:

    Hover your mouse pointer over the domain name in the list and click the Delete link which appears.

    Multi-Domains Delete

    If you want to do a batch delete of several domains, check the boxes next to the domains names and click the Delete button .

    Changing a domain status:

    You may want to change the status (public or private) of a domain name.

    1. Hover the domain name in the list and click the Edit link which appears.

    2. Select a new status.
    – Choose Public if you want it to be available to all the users who register on your blog.
    – Choose Private if you want it to be used by Super Admins only.

    3. Click Save Domain.

    Creating Sites in the Admin

    Now when you go to Sites > Add New in your network admin, you’ll see a new option to select which domain you want to add the new site to.

    Multi-Domains Add Site

    User Experience

    Users who wish to create a blog in your network can now select from the domains you have made available to them when they sign up.

    Multi-Domains Signup

    Potential Issues

    Many times you may run into trouble where mapped domains don’t resolve to your WordPress Multi-site install even though the DNS is correct for the domain you are trying to map.

    This is especially common with shared hosting. Some symptoms are getting a default or non-existent domain screen branded by your host. What this means is that your WordPress install/virtualhost is not set as the default for your IP address, so different domains do not load it up.

    Here is a very simple way to check if your hosting is configured correctly: Simply enter your server’s IP address into a web browser and see if it loads up your WordPress signup page. For example, using the Edublogs IP you would enter into the web browser. See how it loads up the signup page? If entering your IP pulls up an error screen from your host (Example: here is what you can do:

    1. Purchase a dedicated IP address for your hosting.

    2. Many times just the dedicated IP will do the trick. If not, you will need to ask your host to configure your WPMU virtualhost to be the default for your dedicated IP.

    3. If you have addon domains in your hosting account, this may cause additional issues. To resolve this, you could add the domain you want to offer as a parked domain. Then create a wildcard A record in your DNS zone editor and point it to your dedicated IP as shown above.

    • Note that any DNS edits may take up to 48 hours to propagate.

    Of course, if you ever get stuck, just drop by the forums or live support for assistance!