Multisite Network

WordPress multisite is an advanced feature that allows you to run multiple sites from the same WordPress installation. If you’re currently on a single-site plan and want to enable multisite, you’ll need to upgrade your plan to a multiple-site plan.

Setting up and managing a WordPress multisite usually requires more attention than a standard single-site install and can become complicated. We recommend working with an experienced developer if you wish to switch an established site from a single site to a multisite network and for ongoing multisite configuration and maintenance.

Subdirectory vs subdomain

We support both subdirectory and subdomain setups.

  • A subdirectory multisite is one that’s loaded from a subdirectory of a root domain (e.g. domain.com/multisite/).
  • A subdomain multisite is one that’s loaded from a unique subdomain (e.g. multisite.domain.com).

Important notes

  • If you change from a subdomain to a subdirectory multisite, open a chat with our Support team to let them know so they can add an Nginx rule for it to work properly.
  • If you need to test a subdomain multisite on the temporary URL, you can only use HTTP, and you cannot force HTTPS. The SSL certificate provided for kinsta.cloud domains (e.g. sitename.kinsta.cloud) can only cover the first level of subdomains (e.g. sitename.kinsta.cloud), so any additional subdomain level (e.g. subsite.sitename.kinsta.cloud) cannot be covered.
  • Alternatively, if you need to test the multisite over HTTPS without pointing the network’s primary domain, you’ll need to add a different custom domain with a wildcard SSL certificate to use for testing.

Wildcard subdomain

When you add a root/apex domain (domain.com) to a site in MyKinsta, an additional wildcard subdomain (*.domain.com) is automatically added (unless you deselect the wildcard option under Advanced Options). If you’re running a subdomain multisite, you can point that wildcard subdomain to your Kinsta site the same way you point your root/apex domain, so you don’t have to add each subdomain individually in MyKinsta.

Install WordPress multisite

To install a WordPress multisite, check the Install WordPress multisite option when adding your new site in MyKinsta.

Then, select either the Subdirectory or Subdomain option, depending on which type of multisite network you want to install.

Select multisite when adding a new site in MyKinsta.
Select multisite when adding a new site in MyKinsta.

If you want to switch an established single site to a WordPress multisite network, we recommend working with a WordPress developer who is familiar with that process and for ongoing multisite configuration and maintenance.

Add and point your primary domain

The next step is to add your site’s custom domain to MyKinsta and point it to Kinsta to make your multisite live. It’s usually recommended that you use the non-www version of the domain for multisite. We’ll make sure the www-version of the domain is redirected in the next step.

Go to your site’s Domains page, click Add Domain, and add your custom domain. Check the box to Add domain(s) with and without www, and click Add domains. Checking that box will take care of redirecting the www-version to the non-www version of the domain.

After adding the domain, verify and point the domain to Kinsta. For more details, see our detailed guide for How to Add a Domain to a Site on Kinsta.

Once your domain has been verified and pointed to Kinsta, you can make it the primary domain by opening the kebab (three-dot) menu beside your domain in the Domains list and selecting Make primary domain.

Make a domain the primary domain in MyKinsta.
Make a domain the primary domain in MyKinsta.

You can opt to run a search and replace to update your site’s database with your new primary domain. Note this will not affect email addresses. If those need to be updated, you can use the Search and replace tool in MyKinsta.

Update wp-config.php file

Next, you’ll need to update your site’s wp-config.php file to work correctly with your new primary domain. Your wp-config.php file can be found in your site’s root directory (aka document root). To access and edit this, you can use SFTP (download, edit, and upload the updated file) or SSH (you can edit the file directly on the server).

First, on the line that begins with define( 'DOMAIN_CURRENT_SITE' — change the domain from the kinsta.cloud domain to your new primary domain.

Change DOMAIN_CURRENT_SITE in wp-config.php to your primary domain.
Change DOMAIN_CURRENT_SITE in wp-config.php to your primary domain.

Next, to make sure you can log into your multisite network, including your subsites, add this line just below the define( 'BLOG_ID_CURRENT_SITE' line:

define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] );

Save your changes, and if you’re using SFTP, upload the file to the server, overwriting the old version of the file.

Add subsites

Now you’re ready to create subsites in your multisite network. Log in as the Super Admin (the user you added when you created the site in MyKinsta above).

In the My Sites menu near the top left corner, go to Network Admin > Sites and click Add New.

Add a new subsite in a multisite network.
Add a new subsite in a multisite network.

Enter your new subsite’s details in the fields provided and click Add Site. The Site Address will either be a subdomain or subdirectory of the main site’s domain.

Enter your subsite details and add your subsite.
Enter your subsite details and add your subsite.

Repeat these steps as needed to add any additional subsites.

Multisite staging environment

If you need a staging environment to test new WordPress versions, plugins, code, or general development work, our free WordPress staging environment may be an option.

Subdirectory multisites (example.com, example.com/subsite1, example.com/subsite2) are compatible with our staging environment.

With subdomain (example.com, subsite1.example.com, subsite2.example.com) or domain-mapped multisites (loads different subsites at completely different domains, e.g. example.com, example1.com, example2.com), it may be possible, depending on how your multisite is configured.

Multisite domain mapping

Multisite domain mapping allows you to map a custom domain to a subsite in your multisite network. This is a useful feature if you want to have individual domains for your subsites instead of subdomains (e.g. sub1.example.com) or subdirectories (e.g. example.com/sub1).

To do this in some earlier versions of WordPress, you had to use a plugin, but as of WordPress 4.5, this is now a built-in feature of WordPress multisite.

This guide assumes you’re familiar with and already running a multisite network with a custom domain configured for the main site. If not, check out our guide for creating a multisite network.

If you have an existing multisite with mapped domains in your site’s database and you’re just looking to set up those domains in MyKinsta, you can skip down to the Add a Subsite Domain to MyKinsta and Point DNS section below.

Create a new subsite

If you already have an existing subsite you want to map a domain to, you can skip this step.

Log in to your multisite network’s WordPress dashboard as the Super Admin.

In the My Sites menu near the top left corner, go to Network Admin > Sites and click Add New.

Add a new subsite in your multisite network.
Add a new subsite in your multisite network.

Enter your new subsite’s details in the fields provided and click Add Site. The Site Address will either be a subdomain or subdirectory of the main site’s domain. Don’t worry; we’ll change this to the custom domain in the next steps.

Add your new multisite subsite details.
Add your new multisite subsite details.

Repeat these steps as needed to add any additional subsites.

Map a custom domain to a subsite

To map your custom domain to a subsite, on the Sites page, hover over the subsite URL and click on the Edit link that appears.

Edit a subsite in a multisite network site list.
Edit a subsite in a multisite network site list.

In the Site Address (URL) field, replace the existing URL with your custom domain’s full URL. Be sure to include the full URL to the domain, including the protocol (e.g. https://example.com). It’s generally recommended to use the non-www version of the domain here. We’ll make sure the domain’s www version is redirected in the next section.

Add your custom domain's URL in the Site Address field to map your domain to your subsite.
Add your custom domain’s URL in the Site Address field to map your domain to your subsite.

Repeat these steps as needed to map custom domains to any additional subsites.

Add a subsite domain to MyKinsta and point DNS

To add your subsite’s custom domain to MyKinsta, log in to MyKinsta, go to WordPress Sites > sitename > Domains, and click Add Domain. Enter your custom domain (you can also enter multiple domains separated by commas), click Add domain, and complete the steps to verify and point your domain to Kinsta. For more details,  see our guide for How to Add a Domain to a Site on Kinsta.

SSL and forcing HTTPS

At Kinsta, our Cloudflare integration includes free SSL certificates for all verified domains. When you add and point your domain to Kinsta, a free SSL certificate is generated.

If you need to update any URLs from HTTP to HTTPS, you can do that with the Search and replace tool in MyKinsta.

The last step is to force HTTPS by redirecting HTTP to HTTPS, which you can do on your site’s Tools tab in MyKinsta.

Enable force HTTPS with use requested domain option in MyKinsta.
Enable force HTTPS with use requested domain option in MyKinsta.
Was this article helpful?