WordPress Multisite-Multidomain


How to install WordPress Multisite.

Install WordPress

  1. Please install WordPress using this guide. Please note that this is only confirmed to work when WordPress is installed in the root of the domain rather than a sub directory.

Allow Multisite in Wp-config

  1. FTP into your account using this guide.
  2. Navigate to your domain and select edit on wp-config.php.
  3. Add the following lines into wp-config.php.
  4. /* Multisite */
    define( 'WP_ALLOW_MULTISITE', true );
    
  5. Navigate to your WordPress Admin dashboard and select Tools -> Network Setup.
  6. Select Sub-directories and give your site a title. Then click Install.
  7. On the next screen you will be greeted with some lines to add to your wp-config.php and .htaccess files. Add them like so:
    Please note: These are different depending on your configuration, remember to copy and paste what it gives your rather than copy mine below.
  8. You will now have to sign into your Admin dashboard again however you should see this in the top right after the installation is finished:

Create a child site

  1. Sign in to your Adming and navigate to yourdomain.com/wp-admin/network/. Click “Create a new site”
  2. Fill out this form for the data for the new site and select enter.

Install and configure WordPress MU Domain Mapping plugin

  1. Install the “WordPress MU Domain Mapping plugin” as you would any other plugin.
  2. Move /wp-content/plugins/wordpress-mu-domain-mapping/sunrise.php into wp-content/.
  3. Edit /wp-config.php, above the last require_once add this:
  4. define( 'SUNRISE', 'on' );
    

  5. Log into your Admin panel, go to My Sites -> Network Admin -> Settings
  6. Then on the left select Domain Mapping
  7. Here please enter either your domain name or your server IP address and select Save
  8. Then on the left please select Domains
  9. Now enter your domain that you would like to map to the new child site we made earlier. Check primary if you would like the domain to not redirect to the main domain. Enter the ID of the child site that you created earlier, in my example it is the second site I made so this is ID 2
  10. Now everything is set up in the plugin and configured, all that is left to do is alias your new domain to the main domain. Please see this guide.
  11. Visit your second domain and test out the Multisite-Multidomain installation!

This entry was posted in General. Bookmark the permalink.

Leave a Reply

Please DO NOT use this form to submit support requests, all information submitted will be PUBLICLY VISIBLE.

Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.