Read this article and discover how you can establish domain mapping for WordPress multisite! Get all information including step-by-step guidance here!
So, you’ve set up your WordPress multisite and now you are wondering how to begin setting up some new websites in your network. The only problem is that you probably want to use different domain names for your websites, instead of using subdomains or subfolders of your primary installation. In order to do that, you need to install a plugin.
How to Install the Plugin
To make your job easier, you need to install the required plugin. Make sure to install WordPress MU Domain Mapping plugin and also the Network Activate the Plugin.
Before we continue, there are a few things you will have to do manually such as access your website’s installation and go to wp-content/plugin/wordpress.mu-domain-mapping/and find the sunrise.php file. Once you will find this file, move it up for two levels or to the wp-content folder.
Configure the Plugin
Now that your plug is properly installed, you need to configure the plugin. The main thing you should keep in mind is setting the IP address of the web server. In order to do this, you need to enter your hosting cPanel and you will be able to see the IP address of the web server on the main page (on the left site).
Once you will find the IP address you need to:
- Remote Login
- Permanent Redirect (create a 301 redirect on the subdomain)
- User Domain Mapping Page (it will allow the website’s user to map the domains)
- Redirect Administration Pages (all administration pages will be stores on the main website’s domain)
- Disable Primary Domain Check
How to Map Domains to the Network Sites
If you are ready to establish the domain for your new network websites, you should build the site that you want to map the domain to.
Once everything is set, enter your cPanel and find the Parked Domains option (it usually is under Domains). Add the new domain as a parked domain (in this step you need to make sure that the file root shows the exact same folder as the WordPress installation). The final step is mapping the domain to the Site ID. Map the domain and you are done.
If you go to the new domain you will find yourself on a new website.
— Flynn O'Connor (@thoronas) 29 de octubre de 2016