• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
NameHero® Blog

NameHero® Blog

Web Hosting Tips & Resources From NameHero

  • AI Agents
    • OpenClaw
    • Claude Code
    • n8n
    • Hermes Agent
    • Open WebUI
    • Docker
  • Hosting
    • Web Hosting
    • WordPress Hosting
    • WooCommerce Hosting
    • Enterprise Hosting
    • Email Hosting
    • HeroicGuard
    • GPU Hosting
    • Website Builder
  • VPS
    • Managed VPS
    • Unmanaged VPS
    • Flex VPS
  • Reseller
  • Gaming
  • Domains
  • Account
  • Blog Home
  • Categories
  • Authors

A Complete Guide To WordPress Multisite Domain Mapping

Sophia Lee

Published on: February 21, 2024

Categories: WordPress 0

WordPress makes it easy to host multiple websites with a single hosting package, thanks to multisite. The main downside of multisite is that it defaults to using subdomains or subdirectories, which don’t make for user-friendly URLs.

You can fix that using domain mapping. WordPress multisite networks enable you to map a custom domain to each network subsite. To do this, you’ll need to tinker with the network setup, which is actually more straightforward than it might sound.

In this article, we’ll explain what WordPress multisite domain mapping is and how it works. Then, we’ll show you how to use domain mapping with multisite. Let’s get to it!

Table of Contents
  • An Introduction to WordPress Multisite
  • What Is Domain Mapping?
  • A Guide to WordPress Multisite Domain Mapping (3 Steps)
    • Step 1: Create and Configure Your WordPress Multisite Installation
    • Step 2: Edit the Subsite’s Custom Domain
    • Step 3: Point the Domains to Your Web Host Nameservers
  • Conclusion

An Introduction to WordPress Multisite

Multisite is a WordPress feature and a type of setup. With it, you can create multiple WordPress websites as part of a connected network.

What’s more, multisite enables you to set up as many websites as you need using subdomains or subdirectories. You get access to a central WordPress admin dashboard that lets you manage the entire network, as well as individual dashboards for each of your network websites:

The WordPress dashboard for managing your main network site.

To put this into practical terms, you can pay for a single hosting account that supports multisite, and use it to set up multiple projects. Each site in the network will have its own address, such as:

  • website1.yourdomain.com
  • yourdomain.com/website1

Typically, you’ll map a primary domain to the multisite network and use subdomains or subdirectories for each site (you can choose either option). However, you can also map individual domains to each subsite.

Mapping a domain to a network subsite can be a smart move if you don’t want users to know they’re part of a larger network. For example, if you offer web development services and host client websites on a multisite network, they’ll probably want to use custom domains.

The same applies if you’re working on WordPress projects that have nothing to do with each other. Setting up individual domains for each of them looks more professional, and it works even if every site is hosted on the same server.

What Is Domain Mapping?

Now that you know the basics of WordPress multisite, let’s talk about domain mapping and domain registration.

When you register a domain name, it will have to be assigned to a main site. This can be done with the domain registrar or hosting provider you used to purchase the address.

It involves configuring the domain’s DNS records to point toward your web host’s nameservers. That process is called domain mapping. In a nutshell, this enables you to map a unique domain to an IP address and record that information in the DNS.

If you’re using WordPress multisite, the Content Management System (CMS) can create subdomains or subdirectories for the main domain. These are mapped automatically, so you don’t need to update the custom domain name.

WordPress multisite domain mapping involves using multiple domains and assigning each to one of the subdomains (or directories). This way, users will be able to access each site through a unique domain, and they won’t know you’re using a WordPress multisite setup.

A Guide to WordPress Multisite Domain Mapping (3 Steps)

To follow this WordPress multisite domain mapping tutorial, you’ll need to have one or multiple domain names available.

You can register one or multiple domains using NameHero. You can even use the free domain search tool to find the perfect custom domain:

Registering your main domain with NameHero.

If you do, you’ll be able to skip part of this domain mapping tutorial, since the custom domains will already point to the right nameservers.

Step 1: Create and Configure Your WordPress Multisite Installation

There are two ways to install WordPress multisite. The first is to use a hosting service that gives you the option to choose a multisite setup when you install WordPress. The second is to enable multisite manually, which is something we only recommend with a new WordPress installation.

To do the latter, you’ll need to edit your site’s wp-config.php file. This is one of the WordPress core files. That means it includes critical information for the CMS. In fact, the entire system won’t work without it.

To access the wp-config.php file, connect to the main WordPress multisite network via a File Transfer Protocol (FTP) client like FileZilla. Once your site is connected, you’ll need to access the maindirectory, which should be called root, www, public_html, or your site’s name.

Inside the folder, you’ll find the wp-config.php file. Right-click on it and look for an option that says Edit (how this appears can vary depending on the FTP client you use):

Accessing the WordPress multisite network root directory using an FTP client.

This enables you to edit the wp-config.php file using a text editor. Look for the line that reads “That’s all, stop editing! Happy publishing”, and paste the following code before it:

define(‘WP_ALLOW_MULTISITE’, true);

As the code suggests, this command allows you to use a multisite network.

Next, add a second line of code below that first one. This code snippet enables WordPress domain mapping with multisite, which is critical for the next steps.

define(‘COOKIE_DOMAIN’, $_SERVER[‘HTTP_HOST’] );

That code will make it so you can log into different sites within the multisite network, even if they have custom domain names. Without this code, the login pages for each site won’t work, which means you’ll need to access them through the multisite network admin dashboard.

Finally, save your changes to the file and close it. The FTP client will upload the updated version and the changes will go live.

Now, go ahead and access the WordPress dashboard using the login screen, just as you would with any other installation. You’ll notice that the dashboard looks different. That’s because you’re seeing the WordPress multisite network admin screen.

Step 2: Edit the Subsite’s Custom Domain

This admin dashboard enables you to configure settings for every site that’s part of the WordPress multisite network. You can also jump to different sites in the network (or add new ones) using the Sites > All Sites option:

The multisite network admin dashboard, where you can manage multiple sites.

To change a site’s domain, hover over it and select Edit. This will open a new page where you can change the site’s URL:

Editing the site address for a subsite in a WordPress multisite network.

Note that you’ll need to repeat this process for every site in the WordPress multisite network that you want to use a custom domain for. This should only take a few minutes, though.

Also note that this will only work if the domain you use is already pointing to your hosting provider’s nameservers. If you’re using a different registrar, you’ll need to update the DNS records manually.

If the custom domain’s DNS records aren’t up to date, you won’t be able to access any of the sites in the network with their new addresses. Let’s see how that process works.

Step 3: Point the Domains to Your Web Host Nameservers

This process will vary depending on which hosting provider or registrar you’re using. To get started, simply log in to your domain registrar account and select the domain you want to map. Then open its DNS settings:

Configuring custom domain DNS records through the domain registrar.

You should see an option here to set up an A record. This is a record in the DNS that maps a domain to an IP address:

WordPress multisite domain mapping on the back end of a registrar.

What IP address you map the domain to will depend on your hosting provider. You’ll need to find its nameserver information, which should be available through your hosting control panel.

If you use NameHero for hosting, you’ll get the nameserver information in the welcome email we send you. Any domains you register through NameHero will automatically point to these nameservers, which means you can skip this step.

Note that DNS records can take a while to update. If the custom domains don’t start working immediately, give the process a few hours before trying to use them again.

Conclusion

WordPress multisite domain mapping is not a complex process. You can use a single web hosting account to power an entire multisite network. If the network requires more resources, you can always upgrade your plan, so that all sites continue to offer a great user experience.

If you’d like every site in your multisite installation to have its own custom domain, you’ll need to map a URL to each one. Here’s what you’ll need to do:

  1. Create and configure WordPress multisite installation.
  2. Edit the subsite’s custom domain.
  3. Point the domains to your web host nameservers.

Do you have any questions about WordPress multisite domain mapping? Let’s talk about them in the comments section below!

Sophia Lee
Sophia Lee

Sophia is a staff writer at WordCandy.co, where she produces quality blog content for WordPress plugin and theme developers, hosting providers, website development and design agencies, and other online businesses.

Related Posts

Blogger vs. WordPress: Which One to Use?

Let's compare WordPress and Blogger across five key areas. Then, we'll show you how to set up a professional blog with WordPress.

Joomla vs. WordPress: Which One Is Better?

In this post, we’ll consider five differences between Joomla and WordPress and how you might go forward with setting up a WordPress website.

What Is Self-Hosted WordPress?

In this post, we’ll differentiate self-hosted WordPress from WordPress.com, and discuss the benefits of the former.

How to Eliminate Render-Blocking Resources in WordPress (& Why You Should)

Many things can slow down your site, including render-blocking resources. These are CSS and JavaScript files that delay the loading of content on your site. As a result, visitors will have to wait longer to interact with your page, which could lead to frustration and instant exits.  So, what can you do to eliminate render-blocking […]

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Follow & Subscribe

Exclusive promos, content and more!


Most Popular Posts

NameHero’s Recommended WordPress Plugin and Theme Setup

WordPress Hosting vs. Web Hosting – What’s The Difference?

How To Increase The InnoDB Buffer Pool Size

How To Fix A Stuck All-in-One WP Migration Import

How To Add A Subdomain In Cloudflare

Top Categories

  • WordPress
  • WordPress Tutorials
  • OpenClaw Hosting
  • Enterprise Hosting
  • WooCommerce
  • Web Hosting
  • Resellers
  • Website Security
  • Website Development
  • Website Performance
  • VPS Hosting
  • SEO Tips
  • Announcements
  • Domain Registration
NameHero

NameHero® proudly provides web hosting to over 40,000 customers with 99.9% uptime to over 750,000 websites.

  • Master Card
  • Visa
  • American Express
  • Discover
  • Paypal
Products
  • Web Hosting
  • Managed VPS Hosting
  • Unmanaged VPS Hosting
  • Flex VPS Hosting
  • WordPress Hosting
  • WooCommerce Hosting
  • Reseller Hosting
  • Enterprise Hosting
  • GPU Hosting
  • Email Hosting
  • HeroicGuard
  • Domains
  • Website Builder
  • AI Agent Hosting
Help & Support
  • NameHero Blog
  • NameHero Gaming Blog
  • Support
  • Help Center
  • Migrations
  • Affiliates
  • Gaming Affiliates
  • Call 1-855-984-6263
Company
  • About Us
  • Contact Sales
  • Reviews
  • Uptime
  • We're Hiring

Copyright © 2026 Name Hero, LLC. All rights reserved.
NameHero® is a registered trademark.

  • Privacy Policy
  • Terms of Use
  • Acceptable Use Policy
  • Payment Policy
  • DMCA