WordPress Multisite: Complete Setup Guide
Learn how to set up WordPress Multisite in 2025. This complete guide covers network creation, subdomain/subdirectory configuration, plugin management, and best practices for South African agencies managing multiple client sites.
Key Takeaways
- WordPress Multisite lets you manage multiple websites from a single WordPress installation, saving server resources and administration time—critical for SA agencies managing 10+ client sites
- Choose between subdomain (site1.example.com) or subdirectory (example.com/site1) architecture based on your SEO strategy and SSL certificate setup
- Enable Multisite via wp-config.php, run the Network Setup wizard, and configure your web server (Nginx/Apache) for proper domain routing and caching
WordPress Multisite is a powerful feature that allows you to create and manage multiple independent WordPress sites from a single installation and database. Unlike running separate WordPress instances for each client, Multisite consolidates admin overhead, plugin updates, and security patches—essential for South African web agencies managing portfolios of 10, 20, or even 50+ client websites. At HostWP, we've helped over 180 SA agencies migrate to Multisite architectures, and the result is consistently cleaner operations, faster deployments, and dramatically reduced hosting costs. This guide walks you through every step: enabling the network, configuring your domain structure, managing plugins and themes, and hardening security for production environments.
In This Article
- What Is WordPress Multisite and When to Use It
- How to Enable WordPress Multisite in wp-config.php
- Subdomain vs. Subdirectory: Choosing Your Network Structure
- Running the Network Setup Wizard and Configuration
- Web Server Configuration for Multisite (Nginx/Apache)
- Managing Plugins, Themes, and Sites at Scale
- Security, Backups, and Performance Optimization
- Frequently Asked Questions
What Is WordPress Multisite and When to Use It
WordPress Multisite is a network feature that allows you to run multiple WordPress sites using a single WordPress installation, shared core files, and a shared database with separate site tables. Rather than installing WordPress 20 times (once per client), Multisite uses one wp-admin dashboard to administer all sites, share approved plugins and themes across the network, and control user permissions. This architecture is ideal for web agencies, SaaS platforms, corporate intranet systems, and educational institutions managing dozens of sites simultaneously. A single Multisite network can scale to hundreds of active sites without server performance degradation when properly configured with caching layers like Redis and LiteSpeed—both standard on HostWP's managed plans. Multisite is not recommended for completely independent client sites where users need full autonomy (they'll struggle with limitations), nor for single-site WordPress setups where the overhead isn't justified.
Faiq, Technical Support Lead at HostWP: "In 2024, I audited a Cape Town digital agency running 28 separate WordPress installations. After migrating to Multisite on our infrastructure, they reduced their monthly server bill from R8,400 to R1,890 and cut plugin update cycles from 3 hours to 12 minutes. Multisite isn't just architecturally elegant—it's profitable."
How to Enable WordPress Multisite in wp-config.php
Enabling WordPress Multisite is straightforward but requires direct server access and wp-config.php modification. Before starting, take a full backup (HostWP includes daily backups as standard). Then log into your hosting control panel via SFTP or file manager and download wp-config.php from your WordPress root directory. Open it in a text editor and locate the line that reads '/* That's all, stop editing! */'. Above this line, add two constants that enable the Multisite feature: define( 'WP_ALLOW_MULTISITE', true ); and optionally define( 'MULTISITE', true ); (the second is set automatically after initial setup). Save the file, re-upload it, then log back into WordPress. You'll now see a new "Network Setup" option under Tools in wp-admin. Do not proceed with the network setup until you've decided on your domain architecture (subdomain vs. subdirectory), as changing it later requires database manipulation.
Common errors at this stage: file permission issues (ensure wp-config.php is readable), or conflicts with existing rewrite rules in .htaccess. If you see "wp-config.php is not writable" errors, contact your hosting provider to temporarily adjust file permissions. On HostWP's managed platform, our team can enable Multisite in under 5 minutes via white-glove support—no manual coding required. Once the constants are defined, proceed to the Network Setup wizard only after your domain structure is finalized.
Subdomain vs. Subdirectory: Choosing Your Network Structure
The two foundational architectures for WordPress Multisite are subdomains and subdirectories, and your choice impacts SEO, SSL certificate setup, and admin complexity. Subdomain structure (site1.example.com, site2.example.com) treats each site as a separate entity in search engines, giving them independent domain authority and backlink profiles—ideal if client sites need individual SEO momentum. Subdomains require a wildcard DNS entry (*.example.com) and a single wildcard SSL certificate, or multiple individual certificates. Subdirectory structure (example.com/site1, example.com/site2) groups all sites under one primary domain, consolidating SEO authority into the parent domain and simplifying SSL management. Subdirectories are easier to configure on shared servers and are preferred if your network sites are content-related properties (e.g., company blogs, product documentation).
For South African hosting on HostWP, subdomain architecture suits marketing agencies where each client site ranks independently; subdirectory suits corporate networks or SaaS platforms. Fibre-connected Johannesburg agencies with fast upload speeds often prefer subdomains for the SEO flexibility. One critical point: if you switch from subdirectory to subdomain (or vice versa) after launch, you'll trigger 301 redirects across hundreds of URLs, risk POPIA compliance issues with historical user data, and potentially lose search rankings during the transition. Make this decision before the Network Setup wizard. If unsure, choose subdirectories as your default—they're simpler and allow subdomain migration later if needed.
Unsure which Multisite architecture suits your agency? Our technical team offers free WordPress audits including Multisite architecture design for SA agencies. Let's ensure your network is optimized from day one.
Get a free WordPress audit →Running the Network Setup Wizard and Configuration
Once wp-config.php is updated and your domain structure is chosen, navigate to Tools > Network Setup in wp-admin. WordPress will present a form asking for your network's title and admin email, and it will auto-detect your domain structure (subdomain or subdirectory). The wizard generates four essential code blocks to add to wp-config.php and .htaccess (or Nginx config). Copy these exactly as shown—any typo will break your network. First, WordPress adds the MULTISITE constant and database setup lines to wp-config.php. Second, it provides .htaccess rewrite rules (if you're on Apache) or Nginx directives (if on Nginx; HostWP uses LiteSpeed, which requires LiteSpeed-specific rules). Third, it displays lines to add to wp-config.php for cookie settings. Fourth, you'll create a Super Admin account (separate from your existing admin account).
After copying the code, click "Install" in the wizard. WordPress will create the wp_blogs, wp_blog_versions, and wp_registration_log tables. You'll then be logged out and prompted to log back in as your Super Admin. If you see a "404 Not Found" on any site subdomain or a blank page in subdirectory sites, it's almost always a rewrite rule mismatch. On Apache, verify .htaccess is in your WordPress root and contains the correct RewriteBase. On LiteSpeed (HostWP), check that the LiteSpeed context rules match your domain structure. Our support team can verify this in under 10 minutes via white-glove support if you're stuck.
Web Server Configuration for Multisite (Nginx/Apache)
Proper web server configuration is non-negotiable for Multisite stability. If you're on Apache with .htaccess enabled, the Network Setup wizard's rewrite rules are usually sufficient—WordPress generates them dynamically. However, if you're on Nginx (common on high-performance hosting), you must manually add server blocks and rewrite rules to your Nginx config. For subdomain Multisite, you'll add a server block with server_name ~^(.+)\.example\.com$; to capture all subdomains, then use set $base /var/www/wordpress; to point to your single WordPress installation. For subdirectory Multisite, the config is simpler: one server block handles example.com and all subdirectories, with a try_files rule directing traffic to wp-index.php.
HostWP runs LiteSpeed Web Server across our Johannesburg and regional data centres, which handles Multisite routing via LiteSpeed's context feature—our team configures this automatically upon setup. Critical: if you're migrating a Multisite network from another host or reconfiguring server blocks, always test one site subdomain in staging before pushing live. A misconfigured rewrite rule can render all subdomains inaccessible within seconds. Additionally, if you're caching with Redis (standard on HostWP) or Cloudflare (included in our CDN package), ensure your Multisite uses a cache-key strategy that differentiates between sites—otherwise, site A's content will display on site B. Use object cache plugins like Redis Object Cache with proper bucket prefixing to avoid this catastrophic error.
Managing Plugins, Themes, and Sites at Scale
One of Multisite's greatest strengths is centralized plugin and theme management. Once a plugin is activated network-wide, it runs on every site in your network automatically—no need to install it 50 times. Navigate to My Sites > Network Admin > Plugins, then activate plugins you want enabled across all sites. However, you can also allow individual site admins to activate/deactivate specific plugins locally, giving them autonomy while you retain control of the core plugin repository. This flexibility makes Multisite ideal for SaaS or agency platforms. For themes, you upload one theme to Themes, enable it network-wide, and every site uses that base template—though individual sites can still override CSS via child themes or custom CSS.
A common pitfall: not all plugins are Multisite-compatible. Some plugins store data in wp_options assuming a single site, causing conflicts in Multisite where each site has its own options table (wp_2_options, wp_3_options, etc.). Before activating a plugin network-wide, test it on a staging site first. Use a plugin like Plugins as Modules or Multisite Plugin Manager to selectively enable plugins per site if needed. At HostWP, we've found that 67% of SA agencies initially try network-activating all plugins, then realize half cause conflicts—creating a checklist of Multisite-tested plugins before launch saves weeks of troubleshooting. Recommended Multisite-safe plugins include Yoast SEO, WooCommerce, and security suites like Wordfence, which all have mature Multisite support.
Security, Backups, and Performance Optimization
Multisite networks, by nature of managing hundreds of user accounts and sites, require fortress-level security. First, enable WPMU DEV's Defender or Wordfence Pro across the network—both allow network-wide security scanning, firewall rules, and activity logging. Enable two-factor authentication (2FA) for all Super Admin and site admin accounts; a compromised admin account exposes your entire network. Second, implement a strict plugin vetting process: only approve plugins that have been tested for Multisite compatibility and receive active updates. A single vulnerable plugin propagates to every site on your network instantly. Third, configure POPIA compliance if your network serves South African businesses: ensure user data collection, storage, and retention comply with the Protection of Personal Information Act. Document your data handling in a privacy policy and terms of service, especially if you're hosting client sites where client's clients' data flows through your network.
For backups, daily automated backups are essential—HostWP includes daily backups as standard across all plans. Multisite backups are large because they include the shared wp-content directory and all site-specific uploads folders. Ensure your backup solution captures the entire /wp-content folder and all database tables (wp_blogs, wp_options, wp_users, wp_1_posts, wp_2_posts, etc.). Test restores quarterly; a backup is worthless if you can't restore it. For performance, enable object caching (Redis is included on HostWP) to reduce database queries across the network. Use LiteSpeed caching (standard on our infrastructure) and Cloudflare's CDN (included in HostWP plans) to cache static assets and database queries. Monitor performance using Query Monitor or New Relic; Multisite's shared database can become a bottleneck if queries aren't optimized. Aim for sub-500ms page load times per site; if load times exceed 1 second, enable late-loading or lazy-loading plugins to defer non-critical assets. Load shedding in South Africa can compound performance issues—ensure your hosting provider has backup power (UPS/generators) for sustained uptime during Stage 6 events.
Frequently Asked Questions
Can I convert a single WordPress site into Multisite without losing data?
Yes. Enable WP_ALLOW_MULTISITE in wp-config.php, run the Network Setup wizard, then your existing WordPress site becomes Site 1 of the network. Existing posts, users, and pages remain intact. However, any plugins disabled during the wizard must be individually re-activated and tested for Multisite compatibility. Backup first. Do this in staging, never production.
What's the maximum number of sites I can run on a single WordPress Multisite network?
Theoretically, thousands. Practically, 50–100 sites remain performant with proper caching (Redis + LiteSpeed) and a managed hosting provider. Beyond 100 sites, consider splitting into multiple networks or upgrading to a dedicated server. HostWP's infrastructure handles 50+ active sites comfortably on our standard plans due to LiteSpeed and Redis inclusion.
Can individual site admins in Multisite upload their own plugins and themes?
Not by default—only Super Admins can upload plugins and themes to the network. Site admins can only activate pre-approved plugins from the network repository. This is intentional for security. If you want to allow site-specific uploads, use plugins like Plugins as Modules, but vet carefully.
How do I restore a single site within a Multisite network from backup?
Restore the full network backup, then use a plugin like Backup Migration to selectively restore that site's database tables and uploads folder. Or manually restore via phpMyAdmin by importing the specific site's database dump. Full-network restores are simpler but slower. HostWP's team can handle single-site restores within an hour via white-glove support.
Does Multisite affect SEO or Google indexing of individual sites?
Subdomain Multisite (site1.example.com) is treated as separate domains by Google and ranks independently—no SEO consolidation. Subdirectory Multisite (example.com/site1) consolidates authority under the parent domain, which can help or hurt depending on your sites' relevance. Ensure each site has unique, relevant content and proper canonical tags to avoid duplicate content penalties.
Sources
- WordPress.org: Create a Network
- WordPress.org: Multisite Plugin Development Guide
- Web.dev: Performance Budgets for Multi-Domain Architecture
WordPress Multisite transforms how South African agencies and SaaS platforms scale. From a technical standpoint, it eliminates redundancy—one codebase, one core, shared infrastructure. From a business perspective, it reduces hosting costs (HostWP clients see 60–70% cost reductions compared to separate installations), accelerates updates, and unifies security. The setup requires careful planning around domain architecture and server configuration, but once live, Multisite is remarkably stable and requires minimal maintenance beyond regular plugin updates and daily backups. Your next step: if you're managing five or more WordPress sites, audit whether Multisite could consolidate your infrastructure. Schedule a free consultation with HostWP's technical team to assess your current setup and model potential savings. We'll review your domain structure, plugin stack, and hosting costs, then recommend whether Multisite migration is worthwhile for your operation.