Here, we cover the steps to configure domain mapping on a WP Multisite. In WordPress Multisite, you can connect subsites to different domain names.
For example, a site like subsite.multisite.com can be shown as domain.com. This works for subdirectory sites too, making multisite.com/subsite look like domain.com.
Related Articles
WordPress Multisite Overview
Add Site to WordPress Multisite
Manually Install WordPress Multisite
Configure
- Ensure the domain to be used is pointed to the server
- Ensure the domain is added as an addon domain on the cPanel using the same document root as the multisite
EXAMPLE: If we wanted the subdirectory multisite.com/subsite of the multisite to load from domain.com, we'd add domain.com to the cPanel with the same document root as multisite.com. - Ensure the SSL on the domain is up-to-date
TIP: SSL Shopper or Why No Padlock? are easy ways to check the SSL information.- To use a free AutoSSL certificate, run AutoSSL
-
Log into the WordPress dashboard as the super admin
TIP: If the site was installed using Softaculous, you can typically log in automatically with Softaculous. If not, you can also import the site to Softaculous. - Navigate to My Sites>Network Admin>Sites
- Click on Edit under the applicable site
- Update the Site Address to the desired domain
NOTE: You must include the protocol, either http:// or https://. - Click Save Changes
- Edit the wp-config.php file located in the document root
- Add the following before the line to ensure cookies are set to the correct domain
define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST']);
NOTE: This should be placed before the/* That's all, stop editing!...*/
line
Comments
0 comments
Article is closed for comments.