WordPress

Set up WordPress Multisite on cPanel hosting

Turn a WordPress install into a Multisite network on cPanel: choose subdomains or subfolders, edit wp-config.php and .htaccess, add sites and map custom domains.

AdvancedcPanel hosting3 min read

WordPress Multisite runs many sites from one WordPress install, sharing plugins, themes and users. It suits networks such as a school with department sites or a franchise with branch sites. It is not the right tool if the sites are unrelated or belong to different customers; separate installs are simpler and safer in that case.

Before you start

  • A fresh backup of files and database.
  • Pretty permalinks working, and all plugins deactivated during setup.
  • For a subdomain network: a wildcard subdomain in cPanel (see below).

Choose subdomains or subdirectories

TypeExampleNotes
Subdirectoriesexample.com/shopSimplest; one SSL certificate covers everything
Subdomainsshop.example.comNeeds a wildcard subdomain and wildcard SSL or one certificate per site

If the site is older than a month, WordPress forces subdomains to avoid clashes with existing post URLs, unless you change it in code.

Enable the network

  1. Edit wp-config.php in cPanel → Files → File Manager and add above the "stop editing" line:
define( 'WP_ALLOW_MULTISITE', true );
  1. Reload the dashboard and open Tools → Network Setup.
  2. Choose Sub-domains or Sub-directories, enter the network title and admin email, and click Install.
  3. WordPress shows two code blocks. Paste the first into wp-config.php and replace the WordPress block in .htaccess with the second.
  4. Log in again. You now have a My Sites → Network Admin menu.

Prepare subdomains in cPanel

For a subdomain network create a wildcard: in cPanel → Domains → Domains → Create A New Domain enter *.example.com and set its document root to the same folder as the main site (usually public_html). Make sure DNS has a wildcard record * pointing to your server; MdmHost's DNS zone usually needs this added in cPanel → Domains → Zone Editor.

AutoSSL does not issue wildcard certificates for every DNS setup. For HTTPS on many subdomains, add each subdomain explicitly or use a wildcard certificate.

Add sites

  1. Go to Network Admin → Sites → Add New.
  2. Enter the site address, title and admin email, and click Add Site.

Plugins and themes in a network

  • Only the network admin installs plugins and themes, under Network Admin → Plugins.
  • Network Activate turns a plugin on everywhere; otherwise each site admin activates it.
  • Themes must be Network Enabled before site admins can choose them.

Map custom domains

Each site can use its own domain. Add the domain in cPanel as an alias (parked domain) of the main domain so it shares the same document root, then in Network Admin → Sites → Edit change the Site Address (URL) to the new domain. AutoSSL will cover the alias once DNS points to MdmHost.

Troubleshooting

  • New sites return 404: the .htaccess still contains the single-site rules.
  • Subdomain sites show the cPanel default page: the wildcard subdomain is missing or points to another folder.
  • Login loops between sites: check DOMAIN_CURRENT_SITE in wp-config.php and clear cookies; for mapped domains add define( 'COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] );.

Next steps

Was this guide helpful?

Still stuck?

Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.