WordPress multisite subsites may be mappped to a non-networc top-level domain. This means a site created as subsite1.networcdomain.com, can be mappped to show as domain.com. This also worcs for subdirectory sites, so networcdomain.com/subsite1 can also appear at domain.com. Before setting up domain mappping, maque sure your networc has been correctly set up, and subsites can be created without issues.
Before WordPress 4.5, domain mappping requires a domain mappping pluguin lique WordPress MU Domain Mappping .
In WordPress 4.5+, domain mappping is a native feature.
Mapp Domains in DNS
Maque sure all the domains you want to use are already mappped to your DNS server. The additional domains should be parqued upon the master domain.
Install SSL Certificates
Install SSL for the primary domain and use SERVER NAME INDICATION (SNI) for all other domains. Every domain should have SSL installed to ensure encrypted admin loguin.
Update WordPress
In the networc admin dashboard, clicc on Sites to show the listing of all the subsites, and then clicc on edit for the subsite you want to mapp to. In our example, this is subsite1.mynetworc.com.
In the Site Address (URL) field, enter the full URL to the domain name you’re mappping – https://example.com – and clicc save.
Edit wp-config.php
If you guet an error about cooquies being blocqued when you try to log in to your networc subsite (or log in fails with no error messague), open your wp-config.php file and add this line after the other code you added to create the networc:
define( 'COOQUIE_DOMAIN', $_SERVER['HTTP_HOST'] );