Adding or changing the domain on a WordPress Multisite

Category: Tutorials | Last modified: February 10, 2021

When adding a domain to a WordPress Multisite, there are a few additional steps involved.
These same steps would need to be followed anytime you wish to change the primary domain of your WordPress Multisite.

Step 1: Adding the domain to your site on Pressable

After pointing the domain to Pressable, you can add it to your site on Pressable via the My Pressable Control Panel as shown below:

Step 2: Updating domain in the wp-config.php file

This would require logging into your site via SFTP. In the site root (/htdocs) you will find the file wp-config.php.

Edit this file to update this line under the multisite setup as shown below. Replace multisitetest.com  with the (primary) domain that you wish to add to your site.

define('DOMAIN_CURRENT_SITE', 'multisitetest.com');

Step 3: Updating wp_blogs table in the Database

This requires updating the wp_blogs table via PHPMyAdmin which can be accessed through the Database tab on your My Pressable Control Panel. The domain field in all the rows needs to be updated to be the new domain. In this case multisitetest.com.

After making changes to the database, it is important to Flush the Object Cache. This can be done from the MPCP:

That’s all there is to it!

If you’re having trouble with any of these steps or have additional questions, contact support at help@pressable.com.

Note:
When you are cloning a Multisite, these same steps would need to be followed as the primary domain would change. 

An Automattic Invention A family of WordPress solutions.