WordPress 3.0 and above version has multisite network feature. To manage multiple sites in single WordPress install, we should enable and create multisite network in WordPress first. Once the Multisite network with subdomain-based or subdirectory-based is enabled, then the second thing we need is to add new sites to the network in order to map multiple domains in single WordPress multisite network.
The concept of WordPress multisite is to create WordPress multisite network and add multiple subdomain sites or subdirectory sites to the multisite network. Finally, map the original domain (one of the sites you want to add in network) to each subdomain or subdirectory sites in the WordPress multisite network using proper domain mapping.
The subdomain or subdirectory multisite network has been chosen by the time of multisite network creation. We can’t easily change subdomain to subdirectory during the setup process. So initially we should decide whether we need subdomain multisite network or sub directory multisite network.
As per the previous post, we have created subdomain-based WordPress network and configured it in WordPress using three steps—blogs.dir, wp-config.php and .htaccess file. In this post we will discuss how to create new subdomain sites in the multisite network.
Add subdomain sites to WordPress multisite network
To add new sites, follow the procedure:
- Login to your multisite-enabled WordPress site.
- Go to network admin dashboard.
- Click ‘Add New’ under ‘sites’ tab in the left sidebar. You will see the below image. Enter the new site address, site title and site admin email to add in your network. The site address will be used as a subdomain of your multisite domain name.
For example, if you entered ‘adwords’ in the site address field, the new site will be created: adwords.seoreplay.com. Here, seoreplay.com is our multisite network-enabled WordPress site.
We can add as many subdomain sites we need in the multisite network by using same procedure above—click ‘add new sites’ link. Each subdomain site in the multisite network works as separate WordPress site and has separate admin dashboard. We can change themes and enable plugins to individual site but the themes and plugins should be installed through network admin. Even though each subdomain site has separate wp-dashboard, there is no need to login separately because all the subdomain sites are connected in the multisite network. Each sub domain site dashboard has link to the network admin. We can access all subdomain sites in the network via the network admin. With the help of professional domain mapping, we can map each subdomain site with the original site we need to add in the multisite network.
Problems encountered while adding new site to WordPress multisite network
When you add new subdomain site in the multisite network, each site will have an automatically assigned unique “blog ID”. Blog ID ‘1’ is used for the network-enabled WordPress site. The next blog IDs 2, 3, 4 are automatically assigned to new subdomain sites during the addition of new sites in the network. In your cpanel, we have blog.dir folder inside the wp-content of the WordPress multisite. Inside the blogs.dir folder, we have separate directory for each subdomain site in the name of individual blog ID.
Your cpanel blogs.dir folder does not have sufficient permission to write. This is one problem we may encounter while adding a new subdomain site to the WordPress subdomain-based multisite network. We need to set check permission for blogs.dir folder if you encounter this problem while adding new subdomain site.
WordPress subdomain-based multisite network not working
Even though the blogs.dir permission has been set correctly, we may still we experience problems in the network site creation. Among these problems may be in setting up wildcard subdomain in the hosting control panel or problem with the network configuration steps. We need to recheck all three steps. We will see the problems while setting up the WordPress multisite later. We can easily setup wordpress multisite with wp.mu.
WordPress subdomain-based multisite network Domain Mapping
Now we have created new subdomain sites in the multisite network using single WordPress installation and each having separate WordPress dashboard. But in the concept of multisite, these subdomain WordPress sites are the duplicate site of original domain. We still need in the multisite network the original sites which will be added using domain mapping concept.
We will learn about multisite domain mapping concepts in upcoming posts and also how to upload themes and plugins once in the multisite network and how to enable and configure it in individual sites in the network.
Share your experience of adding new subdomain sites in the multisite network below section.