Skip to content

Setting up WordPress Multisite on cPanel correctly

How to install and configure WordPress Multisite on a cPanel server — choosing subdomain vs subdirectory, the wp-config and .htaccess changes, and the cPanel-specific gotchas.

WordPress Multisite is a single WordPress install hosting many sites that share the same core, plugins, and themes. On cPanel it works fine — the install is the standard WordPress one — but there are three decisions to make before you flip the switch, and one of them is irreversible without rebuilding.

What’s happening

Multisite extends a normal WordPress install with a network admin layer that creates and manages child sites. Each child site has its own posts, options, and users (with proper isolation), but shares the core files, plugins, themes, and the same wp-config.php. The mode (subdomain vs subdirectory) is chosen at activation and cannot be switched without rebuilding. The same goes for the primary domain.

How to verify

Before turning on Multisite, confirm the base install is healthy:

wp core version
wp core verify-checksums
wp option get permalink_structure

Permalinks need to be set to something other than the default (“plain”) — /%postname%/ is standard. Multisite requires pretty permalinks.

The fix

  1. Decide subdomain vs subdirectory:

    • Subdomain (site1.example.com, site2.example.com): child sites are separate hostnames. SSL needs a wildcard certificate or per-subdomain certificates (AutoSSL handles this on cPanel if DNS points there). Cleaner separation, better for sites that might eventually split off into their own installs.
    • Subdirectory (example.com/site1, example.com/site2): all child sites share the primary domain. Single SSL certificate. Simpler for SEO when content is genuinely related.

    Pick subdomain unless there’s a specific reason for subdirectory. The decision is permanent.

  2. Pre-flight wp-config.php. Add above the “stop editing” line:

    define( 'WP_ALLOW_MULTISITE', true );
  3. In WP-Admin, navigate to Tools > Network Setup. Choose subdomain or subdirectory, give the network a title, set the email. Click Install. WordPress generates two blocks of code — one for wp-config.php, one for .htaccess.

  4. Add the generated wp-config.php block above the “stop editing” line, after WP_ALLOW_MULTISITE. It includes MULTISITE, SUBDOMAIN_INSTALL, DOMAIN_CURRENT_SITE, PATH_CURRENT_SITE, SITE_ID_CURRENT_SITE, BLOG_ID_CURRENT_SITE.

  5. Replace the .htaccess block. The Multisite .htaccess is different from a single-site one — it adds rules for child site uploads served from wp-content/blogs.dir/. Copy the WordPress-generated block exactly; don’t try to merge it with custom rules until it works.

  6. Log out and back in. The network admin appears under My Sites > Network Admin in the top toolbar.

  7. cPanel-specific configuration:

    • DNS: subdomain Multisite needs a wildcard A record (*.example.com → server IP) or DNS for each child subdomain. The cPanel WHM interface allows wildcard subdomains, but the cPanel user interface may not — set it from WHM or edit the zone file directly.
    • AutoSSL: configure a wildcard certificate via WHM > SSL/TLS > AutoSSL, then ensure DNS validation is configured. Some AutoSSL providers (Sectigo) don’t issue wildcard via DNS-01 from cPanel without configuration; Let’s Encrypt does.
    • Account quotas: child sites share the parent’s cPanel account quota — disk, bandwidth, email. A noisy child site can starve the network.
  8. Default plugins and themes are network-activated from Network Admin > Plugins (or Themes). Site admins of child sites can only use what the network admin has enabled. This is part of the value of Multisite — controlled fleet management.

For environments running Multisite at scale, Stack Harbor handles operations as part of enterprise WordPress.