
Editorial illustration; it does not show a real WordPress network or server.
Published on October 21, 2026.
Managing three or four related WordPress sites separately gets tedious fast—updating the same core release four times, configuring the same security headers, and logging into separate dashboards just to tweak a footer. WordPress Multisite solves that by letting multiple sites share one codebase and one database, while keeping each site’s content, users, and URL separate.
That shared foundation is also its biggest trade-off. A bad plugin update or a wp-config.php typo on a Multisite network can take down every site at once, and migrating one sub-site out to its own server later is noticeably more work than moving a standalone install. Make sure shared administration is actually worth that coupling before you flip the switch.
Subdomains vs. subdirectories (and the 30-day rule)
Before touching any files, decide how your network URLs will look:
- Subdirectory network:
example.com/shop,example.com/news - Subdomain network:
shop.example.com,news.example.com
Subdirectories are simpler because they don’t need wildcard DNS or extra TLS certificates. The catch is that WordPress blocks the subdirectory option in the UI if your site is more than a month old, to prevent new site slugs from colliding with existing post/page permalinks.
Subdomains look cleaner for distinct brands or regional sites, but you need a wildcard DNS record (*.example.com) pointing to your server, plus a TLS certificate that covers *.example.com. If you proxy traffic through Cloudflare, note that Cloudflare Universal SSL covers first-level subdomains (*.example.com), though free Cloudflare plans do not proxy wildcard DNS records—you either create explicit proxied A/CNAME records per sub-site or leave the wildcard DNS-only.
Checking permalinks and backing up first
Log into wp-admin and verify Settings > Permalinks is using pretty permalinks (anything other than Plain) and that existing posts load properly. Confirm WordPress Address (URL) and Site Address (URL) under Settings > General do not use a non-standard port, and if you plan to move WordPress into a different directory, finish that move before creating the network.
Back up both your files and your database off-server, then deactivate all active plugins so nothing hooks into the rewrite flush or alters the setup screen:
# Quick pre-flight with WP-CLI
wp db export ../pre-multisite-backup.sql
wp plugin deactivate --all
Do not bulk-reactivate plugins right after setup. Bring them back one by one once the network is working.
Enabling Network Setup in wp-config.php
Open wp-config.php over SSH or SFTP and add this line right above /* That's all, stop editing! Happy publishing. */ (or above the first require/include if that comment is missing):
/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );
Save the file and refresh your WordPress dashboard. You should now see Tools > Network Setup. If it doesn’t appear, double-check that you edited the right wp-config.php (especially on servers with staging directories) and check your PHP error log for syntax errors.
Running Network Setup and applying the generated rules
Open Tools > Network Setup, pick Sub-domains or Sub-directories, fill in your Network Title and Network Admin Email, and click Install.
WordPress will output two blocks tailored to your exact URL and server layout: a set of constants for wp-config.php and rewrite rules for .htaccess. Always copy the exact block WordPress generates for your site rather than pasting an old snippet from a blog post.
Your wp-config.php addition will look similar to this (placed right below WP_ALLOW_MULTISITE):
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', true ); // false for subdirectories
define( 'DOMAIN_CURRENT_SITE', 'example.com' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
On Apache or LiteSpeed, replace the existing WordPress block in .htaccess with the generated rules while keeping any unrelated server directives intact.
If your server runs Nginx, there is no .htaccess file—you must add the Multisite rewrite rules to your Nginx server block (or include a multisite.conf snippet) and reload Nginx. For a subdirectory setup, Nginx needs a rewrite rule that strips the /site-slug prefix for static assets and wp-admin paths:
if (!-e $request_filename) {
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last;
rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last;
}
Test the config with sudo nginx -t and reload with sudo systemctl reload nginx.
Verifying Network Admin and spinning up a test site
Log back into wp-admin using the link WordPress provides (clearing site cookies or using an incognito window if you hit a redirect loop). In the top admin bar, My Sites > Network Admin should now be visible to your Super Admin account.
Before creating sites, open Network Admin > Settings > Network Settings and leave user and site registration disabled unless you specifically intend to run a public self-service network.
Then create a test site under Network Admin > Sites > Add New (or run wp site create --slug=testsite --title="Test Site" --email=admin@example.com). Verify four things on both the new site and your original root site:
- The new site’s frontend URL and
/wp-admin/dashboard load without 404s. - Media uploads work on the new site (Multisite stores them under
wp-content/uploads/sites/<blog_id>/). - Existing posts and contact forms on the original site still work.
- Network-activated plugins behave cleanly across both sites.
Remember that regular site Administrators cannot install plugins or themes on a Multisite network—only a Super Admin can install them under Network Admin > Plugins or Themes, and decide whether to network-activate them globally or make them available per site.
When Multisite breaks right after setup
- Network Admin is missing: Confirm the six
MULTISITEconstants are saved inwp-config.php, log out and back in to refresh auth cookies, and verify your user is a Super Admin. - Subdomains return a DNS or TLS error: Check that
*.example.comresolves to the server IP, your virtual host accepts wildcard or explicit subdomain hostnames (ServerAlias *.example.comin Apache orserver_name example.com *.example.com;in Nginx), and your SSL certificate covers the subdomain. - Sub-site
/wp-admin/or assets return 404: On Apache, check thatAllowOverride Allis enabled so.htaccessis read. On Nginx, verify the subdirectory rewrite block is inside the activeserverblock and Nginx was reloaded. - Login cookie errors: If you see “Cookies are blocked or not supported by your browser” on mapped domains or subdomains, check if an old
COOKIE_DOMAINconstant is hardcoded inwp-config.phpand remove it or setdefine( 'COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] );.
For related guides that complement this checklist, see:
- WordPress Site Health Is Useful—But It Is Not Your Whole Maintenance Plan
- Your WordPress Images Are Too Big: A Practical Way to Make Pages Faster
- Protect WordPress Admin Login Without Locking Yourself Out
Enabling Multisite takes ten minutes; deciding whether your sites genuinely belong on a shared codebase is the part worth taking slowly. Once it is live, keep Super Admin access tightly restricted, test plugin updates on staging before touching production, and verify that your backups cover the entire wp_blogs and wp_sitemeta table structure—not just a single site export.