Multi-Domains

Offer sites with unlimited and different domain options on a single Multisite installation. All the perks without the hassle.

Version 1.3.4.5

  • Fixed: Incorrect or out of date cookie nag

Changelog

Version 1.3.4.5
  • Fixed: Incorrect or out of date cookie nag

Version 1.3.4.4
  • Fixed: vulnerability in add_query_arg and remove_query_arg usage
  • Fixed: Wildcard DNS Availability check

Version 1.3.4.3
  • Amended: sunrise inclusion

Version 1.3.4.2
  • Changed how sunrise is maintained

Version 1.3.4.1
  • Deprecated multi_domain::restore_current_site()
  • Fixed bug with outgoing emails on new site creation

Version 1.3.4
  • Added sso for logging to main domain from secondary domains

Version 1.3.3
  • Added Multidomains_Sso
  • Fixed cross domain single signon issue
  • Fixed cross blog single signon issue

Version 1.3.2
  • Fixed site creation issue which appears when create a site via admin dashboard.

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

Version 1.3
  • Reworked the multi-domains plugin to work from plugins directory
  • Implemented functionality to auto copy/upgrade sunrise.php file

Version 1.2.3
  • Updated the sunrise.

Version 1.2.2
  • Updating sunrise.
  • Forcing empty values existence.

Version 1.2.1
  • Placement script scoping.
  • Blog selection issue fix.

Version 1.2
  • Domains site search.
  • Stuck transients issue fix.
  • BuddyPress cross-domain login issue fix.

Version 1.1.6
  • Better selection block placement.

Version 1.1.5
  • Fix for new site creation on sub-blogs.

Version 1.1.4
  • Fix for re-auth required on first login issue.

Version 1.1.3
  • Enhancement: performance improvements
  • Bug fix: incorrect domain used on site creation in network admin

Version 1.1.2
  • New Feature: Option to enable/disable single sign-on

Version 1.1.1
  • Enhancement: 3.1+ compatibility
  • Enhancement: Allow disabling cross domain login with a constant

Version 1.1
  • Enhancement: More extensible code with new hooks and structure
  • Bug fix: Allow www in mapped domain name

Version 1.0.9
  • Bug fix

Version 1.0.8
  • Enhancements and bug fixes

Version 1.0.7
  • Bug fix, added check for COOKIE_DOMAIN in sunrise.php

Version 1.0.6
  • Bug fixes, domains now stored in alphabetical order

Version 1.0.5
  • Bug fixes

Version 1.0.4
  • Bugfixes

Version 1.0.3
  • Fixed issue with blog registration on subdomains installs

Version 1.0.2
  • Bug fixes

Version 1.0.1
  • Many bugfixes, full BP support, pot file added

Version 1
    Downloads 29,324 Compatibility Multisite 4.3 BuddyPress 2.3.3

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

    Andrew Shanahan

    Multi-Domains adds the power to operate multiple primary domain names on a single WordPress Multisite network.

    It’s like having multiple networks on one Multisite installation – but better.

    multi-domain735x470
    Offer relevant URLs to more users on one network.

    More Network URLs to Choose From

    Give users the ability to choose a network domain that relates to their business, site or service or let users easily create a niche blog and select a content relevant URL.

    Add full domain control and flexibility without creating a new network.

    Global Login Sync

    Enable single sign-on sync and pass from site to site without having to login everytime you change domains.

    Provide fast user access to all the content on your network.

    users-choose-735x470
    Give users more choices and add value to your network.

    More Name Options

    Automated page configuration and a powerful single-settings page have Multi-Domains working perfectly out-of-the-box.

    Add domains using the domain manager and the new host URL options will be automatically added to the Site Sign-up form.

    Level-Up With Domain Mapping and New Blog Template

    Integrate Multi-Domains with Domain Mapping and offer your users a completely custom url.

    Plus, with New Blog Templates you can set unique default themes for each host domain.

    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' );

    multi-domains-1300-wpconfig

    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:

    multi-domains-1300-wildcard

    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 http://66.135.63.39 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: http://74.54.219.243) 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!

    Multi-Domains Feature Set

    Create a more valuable network with host domain name options.

    • Offer multiple host domain names
    • Add value to Multisite
    • Add domain selector at signup
    • Automatically adds dropdown
    • Single settings page
    • Public – available to all users
    • Private – Super Admin use only
    • Single sign-on sync
    • Global login
    • One-click add/remove
    • Domain Mapping integration
    • New Blog Template integration