Setup WordPress Multisite Network with Domain Mapping

Setup WordPress Multisite Network with Domain Mapping 

While running several websites, it can be more useful to go with WordPress multisite network than managing a number of standalone WordPress sites:

 

  • You can easily manage multiple sites from a single dashboard

  • Other users can be added as admins with limited access only to a specific site

  • New plugins and themes can be installed and activated for multiple sites at once

  • Updates should be performed only on master installation and will be automatically applied for all websites in the network 

  • Each website or blog can be customized separately thus they are not limited by unified management

This implementation can be of a great use for various industries and types of organizations with own sites: media resources with a number of sections managed by different teams; government and non-profit sites for different departments or locations; educational organizations with sub-sites created by students; business website with sub-categories for different branches; private blogs on multiple subdomains, and others.

Multisite network is a built-in feature in WordPress that can be easily activated but at the same time it requires a set of configurations for proper work. In this article, we will describe how to create multiple websites, bind custom domains, issue SSL certificates and integrate CDN in a few minutes using a single WordPress installation.

Install WordPress and Enable Multisite Mode

1. First of all, initiate master WordPress installation from Cloudjiffy Marketplace. This can be a cluster or standalone package. Note that a clustered solution is available only for billing customers.

This Article is for WP Standalone kit :

 

 

2. Enable the required Advanced Features including “Install WordPress Multisite Network” option and proceed to environment installation as shown below: 

 

For this article, we create WordPress based on LiteSpeed servers and MariaDB Galera, as well as with enabled WAF, Let’s Encrypt SSL and Multisite Network.

Configure Multisite Network and Create Website

After installation, multisite mode is automatically enabled and the websites can be created in one of the following ways within a single network:

  • sub-domains — a domain-based network in which on-demand sites use subdomains: site1.wpshikha.cloudjiffy.net, site2.wpshikha.cloudjiffy.net

  • sub-folders — a path-based network in which on-demand sites use paths:
    wpshikha.cloudjiffy.net/site1, wpshikha.cloudjiffy.net/site2

In this article, we will go with sub-folders model for our WordPress multisite network subsites.

1. Log in to your WordPress Admin Panel using the credentials from the post-installation email or WordPress successful installation window.

 

2. Open My Sites > Network Admin > Sites page.



 

3. This is the page with all sites of your WordPress Multisite Network. Now, there is the main site only created by default. Click on Add New.

 

4. Fill out the form specifying the Site Address (URL), Title, Language and Admin Email. Click on Add Site.



Congratulations! You have created and configured the first website within your WordPress Multisite Network. Repeat the same steps to create additional sites when required.

 

Bind Custom Domains to Websites in the Network

Below we’ll demonstrate how to map a custom domain to a default one in the multisite network. 

For our example, we have registered three custom domains in shikha.co.in zone that will be mapped to three sites in the network like:

wpshikha.cloujiffy.net/site1 -> multi1.shikha.co.in
wpshikha.cloujiffy.net./site2 -> multi2.shikha.co.in
wpshikha.cloujiffy.net./site3 -> multi3.shikha.co.in

 

1. In order to bind a custom domain (e.g. multi1.shikha.co.in) to a newly created site:

  • create an A record for your custom domain that will map it to the public IP address of Load Balancer

  • find the Let’s Encrypt Free SSL Add-On in the Load Balancer, press Configure button, add your custom domain to the list of registered domains for your web sites

 

[ Note: Let's Encrypt has a set of limitations while issuing certificates. If they don't meet the requirements of your project, please consider using alternative SSL certificate authority. ]

 

2. Go back to the list of the available sites and click on Edit next to the required one.

3. Change the Site Address (URL) with a custom domain multi1.shikha.co.in

 wpshikha.vip.cloudjiffy.net/site1 -> multi1.shikha.co.in

4. Press Save Changes. Repeat the same steps to bind domains for each required sub-site.

You need to bind your sites

Multi1.shikha.co.in

Multi2.shikha.co.in

Multi3.shikha.co.in

 

 to the cloudjiffy domain : wpshikha.cloudjiffy.net

As shown below :

 

Now Using your phpMyAdmin Credentials you can check the details in wp_blogs as shown below :

 










You can also check the individual sites configured correctly in wp_x_options ( Replace x by 2,3,4 according to number of multiple sites binded to cloudjiffy domain )

 




 

 


Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 294