How To Create a WordPress Multisite With Multiple Domains

Creating a WordPress multisite with multiple domains is a great way to manage multiple websites from a single WordPress installation. This allows you to manage all of your websites from one place, while still keeping them separate and distinct.

Here’s how to create a WordPress multisite with multiple domains:

1. Install WordPress

The first step is to install WordPress on your server. This can be done manually or with a one-click installer like Softaculous.

2. Enable Multisite

Once WordPress is installed, you’ll need to enable the multisite feature. This can be done by editing the wp-config.php file and adding the following line:

define(‘WP_ALLOW_MULTISITE’, true);

3. Create Network

Next, you’ll need to create a network. This can be done by going to the Tools > Network Setup page in the WordPress admin area.

4. Add Domains

Once the network is created, you can add additional domains to it. This can be done by going to the Sites > Add New page in the WordPress admin area.

5. Configure Domains

Finally, you’ll need to configure each domain to point to the correct directory on your server. This can be done by editing the domain’s DNS settings and pointing it to the correct directory.

Once all of these steps are completed, you’ll have a fully functioning WordPress multisite with multiple domains.

Creating a multisite in WordPress allows you to manage updates and other administrative tasks across multiple websites. Rather than handling many individual sites, you’re able to build a centralized network on a single WordPress installation. However, you may be disappointed by WordPress’s default options for subsite domains.

Fortunately, you can easily create a WordPress multisite with different domains. By simply adding some code to your site files, you can turn your single-site installation into a network. Then, you can attach new websites and make them unique with domain mapping.

In this post, we’ll explain why you might consider using WordPress multisite. Then, we’ll show you how to create custom domains for each subsite in your network. Let’s get started!

Why Create a WordPress Multisite With Different Domains?

With WordPress multisite, you can create a network of websites in a single installation. These sites will share the same core WordPress files and can also contain the same plugins and themes.

When you create a multisite, you can automatically become the new network administrator. Using a central dashboard, you’ll be able to manage all of your sites in one place. Any site admins will now be able to create new websites and work on them independently while you control the general network.

This can be an efficient way for businesses or schools to handle unique websites for each of their locations. For example, the University of Mary Washington has a network that leads to information for each individual campus:

University of Mary Washington Multisite homepage
University of Mary Washington multisite

When you activate WordPress multisite, you can choose to use subdomains or subdirectories. Here’s an example of how these would look:

  • Subdomains: site1.kinsta.com
  • Subdirectories: kinsta.com/site1

As you can see, both of these options can make links longer and perceivably less credible. However, you can implement domain mapping to set up a custom domain structure. By pointing to an external domain, like “kinsta.com,” visitors will immediately know that each individual site is a part of your network.

Although WordPress multisite can have many benefits, there are some downsides to consider. For instance, all of the sites on your network will use the same resources, so they can face downtime whenever your server is down.

Additionally, some plugins aren’t designed to work on multisites, which can lead to software conflicts or bugs. Still, if you discover any serious issues after you’ve established your multisite, you can always revert to a single-site installation again.

How To Create a WordPress Multisite With Different Domains (in 4 Steps)

Before you start transitioning your WordPress website to a network, you’ll need to make sure your web host can support this process. At Kinsta, we provide WordPress multisite hosting that makes it easy to start managing multiple domains:

Kinsta multisite hosting landing page
Kinsta multisite hosting

With a built-in caching system, Kinsta can help you optimize the performance of your WordPress multisite network. Thanks to global data centers and powerful infrastructure, you won’t have to worry about slow page speed or frequent downtime.

Whenever you’re ready to upgrade your hosting, you can migrate your website to Kinsta for free! Once you’re all set with a dependable web host, you’re ready to start creating a WordPress multisite with different domains.

Step 1: Backup Your Website

If you’re creating a new website from scratch, you can activate multisite as you install WordPress. Using MyKinsta is highly straightforward. Simply click on Add site in your dashboard. Then, be sure to select Install WordPress multisite:

Install WordPress multisite in MyKinsta
Install WordPress multisite in MyKinsta

You’ll also need to choose either a subdirectory or subdomain. After you click on Continue, you’ll be able to log into your new WordPress multisite dashboard.

However, you may already have an existing site. In this case, it’s best to start by backing up your website. Since you’ll be editing your core WordPress files, this is an important step to avoid losing your hard-earned content and any critical data.

Once you migrate your website to Kinsta, sign in to your MyKinsta dashboard. Then, navigate to Sites and select your website:

Select a site in the MyKinsta dashboard
Select Kinsta site

From the list of tabs on the left, click on Backups. Here, you’ll see a list of daily automatic backups that Kinsta has performed:

A view of automatic backups in MyKinsta
MyKinsta automatic backups

If you notice a recent backup, you can continue to the next step. To perform a manual backup, however, select the Manual > Back up now option:

A view of manual backups in MyKinsta
MyKinsta manual backups

Before you create the backup, you’ll be able to add a short note to identify it later. Lastly, click on Create backup:

Create a manual backup in MyKinsta
Create a manual backup

You can easily restore this backup if anything goes wrong while setting up multisite. This will revert any changes to your original site.

Step 2: Set Up Multisite

Now it’s time to transition your single-site WordPress installation into a multisite network! To do this, you’ll need to edit your wp-config.php and .htaccess files. First, use a code editor to open your site’s wp-config.php file. Here, find this line:

/* That's all, stop editing! Happy blogging. */

Right above this, paste the following code:

define( 'WP_ALLOW_MULTISITE', true );

Finally, save the file. Next, open your WordPress dashboard and go to Tools > Network Setup:

Multisite network setup in the WordPress dashboard
Multisite network setup in the WordPress dashboard

On this page, you’ll be able to choose whether to use subdomains or subdirectories in your network. However, older WordPress installations will only be able to use subdomains. Then, enter a title and admin email for the network.

After you hit Install, you’ll be taken to a configuration page. This will give you instructions on how to update your core files to support multisite:

Coding instructions for WordPress multisite
WordPress multisite coding instructions

Once you add the correct coding to your wp-config.php and .htaccess files, you’ll need to sign into your WordPress dashboard again. If done correctly, this should now take you to your new multisite dashboard.

Step 3: Add Sites to the Multisite Network

To start building your network, you can create a new website. First, navigate to Sites > Add New:

Add a new subsite in WordPress dashboard
Add a new subsite

On this configuration page, you’ll be able to customize your new site. You can start by entering the Site Address, which would be the URL for the website.

For this setting, it will currently only allow values that are subdomains of the main site. However, we’ll be changing this to a custom domain in the following step.

Next, choose a title, main language, and admin email. To finish creating the website, click on Add Site. After this, you can continue to add as many websites to the network as you need.

Step 4: Map a Domain for Each Site

For the final step, you can map your subdomains or subfolders to a custom domain. Rather than having lengthy, confusing URLs, you can create unique addresses for your websites. To do this, navigate to Sites > All Sites in your multisite dashboard:

Viewing a list of multisite sites in the WordPress dashboard
List of multisite sites

Hover over the new website to view its configuration options. Then, click on Edit:

Open site settings in WordPress dashboard
Open site settings

Here, you’ll see the current Site Address, which includes the subdomain. Remove this and replace it with a custom domain:

Add custom site domain
Add custom site domain

Then, save your changes. Be sure to repeat this process for each subsite in your network.

Next, you’ll need to add these additional subsite domains to your hosting account. In your MyKinsta dashboard, open the Domains page and click on Add Domain:

Kinsta domains list
Kinsta domains list

In the pop-up window, list all of the new subsite domains and separate them with commas. Once you’re finished, select Add domain:

Add new Kinsta domains in the MyKinsta dashboard
Add new Kinsta domains

Now you’re free to start using your WordPress multisite with different domains! You can start installing multisite plugins and performing other necessary administrative tasks on your network.

Summary

Creating a WordPress multisite can often be an effective way to structure websites that need multiple subsites. This allows you to build an easy-to-manage network with centralized themes, plugins, and updates. Although this may involve a more complicated setup process than a single installation, it can be more efficient in the long term.

When building a WordPress multisite, you can set up individual websites as subdomains or subdirectories. However, you’re also able to create custom domains for each subsite. This can help retain your brand identity and avoid generating long and unreadable URLs.

When you’re ready to start transitioning to a multisite, you’ll need a web host to support you along the way. Check out our multisite hosting plans to start managing up to 150 WordPress sites today!


Get all your applications, databases and WordPress sites online and under one roof. Our feature-packed, high-performance cloud platform includes:

  • Easy setup and management in the MyKinsta dashboard
  • 24/7 expert support
  • The best Google Cloud Platform hardware and network, powered by Kubernetes for maximum scalability
  • An enterprise-level Cloudflare integration for speed and security
  • Global audience reach with up to 35 data centers and 275 PoPs worldwide

Get started with a free trial of our Application Hosting or Database Hosting. Explore our plans or talk to sales to find your best fit.





Source link

Jaspreet Singh Ghuman

Jaspreet Singh Ghuman

Jassweb.com/

Passionate Professional Blogger, Freelancer, WordPress Enthusiast, Digital Marketer, Web Developer, Server Operator, Networking Expert. Empowering online presence with diverse skills.

jassweb logo

Jassweb always keeps its services up-to-date with the latest trends in the market, providing its customers all over the world with high-end and easily extensible internet, intranet, and extranet products.

Contact
San Vito Al Tagliamento 33078
Pordenone Italy
Item added to cart.
0 items - 0.00
Open chat
Scan the code
Hello 👋
Can we help you?