How to add new sites and map a custom domain in WordPress Multisite?
How to map a custom domain in WordPress Multisite
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and shareâ âtheir programming âknowledge and build their careers.
Mapping a domain to your subsite
1.Mapping a domain to your subsite allows you to use a different purchased domain to access a subsite on your Multisite network. For example, site1.domain.com can be accessed as site1.com
2.Download the plugin WordPress MU Domain Mapping.
3.You will have to âNetwork Activateâ the plugin, so that it will available for all the sites.
4.Once the plugin is âNetwork Activatedâ you will need to do some additional setup to ensure proper functionality of the plugin.
{i}Move sunrise.php into wp-content/. If there is a sunrise.php there already, you’ll just have to merge them as best you can.
{ii}Edit wp-config.php file and uncomment or add the SUNRISE definition line. If it does not exist please ensure it’s on the line above the last “require_once” command.
define( 'SUNRISE', 'on' );
5.Once the plugin setup is completed, navigate to the Domains page.
6.First youâll need to find the Site ID for the site {site1.domain.com} and place it in the Site ID textbox on the Domain Mapping page.Add domain {site1.com} that you want associated with the subsite {site1.domain.com}, keep the Primary textbox checked, and click on Save.