What Is WordPress Multisite?
WordPress Multisite allows you to run multiple websites from a single WordPress installation, sharing:
- The same core files
- A single database (with distinct table prefixes)
- A unified user system
- Centralized theme and plugin management
Use Cases
Suitable for Multisite
- Corporate websites for multiple departments
- University or school department websites
- Franchise or chain brand sub-sites
- SaaS website-building platforms
- Multilingual websites (with WPML)
Not Suitable for Multisite
- Fully independent websites
- Websites requiring different plugin configurations
- Highly customized, standalone projects
- Websites needing independent backup or migration
Installation & Configuration
Enabling Multisite
// wp-config.php (add before the "That is all" line)
define("WP_ALLOW_MULTISITE", true);
Network Setup
Go to Tools → Network Setup and choose:
- Subdomain: site1.example.com (requires wildcard DNS)
- Subdirectory: example.com/site1 (simpler)
Adding Configuration Code
// wp-config.php
define("MULTISITE", true);
define("SUBDOMAIN_INSTALL", false); // Set to true for subdomain mode
define("DOMAIN_CURRENT_SITE", "example.com");
define("PATH_CURRENT_SITE", "/");
define("SITE_ID_CURRENT_SITE", 1);
define("BLOG_ID_CURRENT_SITE", 1);
# .htaccess (subdirectory mode)
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
# Add trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
Network Administration
Adding a New Site
Network Admin → Sites → Add New Site
Required fields:
- Site address (subdomain or subdirectory)
- Site title
- Administrator email
User Roles
| Role | Scope |
|---|---|
| Super Admin | Entire network |
| Administrator | Single site |
| Editor / Author, etc. | Single site |
Theme & Plugin Management
- Network-activated: Available to all sites
- Site-activated: Available only to that specific site
- Only Super Admins can install new themes or plugins
Domain Mapping
Using Independent Domains
Each subsite can use its own domain:
- Install a domain mapping plugin (built-in support since WordPress 4.5+)
- Add the domain in the site settings
- Configure DNS to point to your server
- Configure SSL certificates
// wp-config.php
define("COOKIE_DOMAIN", "");
define("ADMIN_COOKIE_PATH", "/");
define("COOKIEPATH", "/");
define("SITECOOKIEPATH", "/");
Performance Optimization
Object Caching
Multisite benefits significantly from object caching:
// Using Redis, with per-site cache isolation
define("WP_REDIS_DATABASE", 0); // Main site
// Subsites automatically use different databases
Database Optimization
-- View table sizes per site
SELECT table_name,
ROUND(data_length/1024/1024, 2) as size_mb
FROM information_schema.tables
WHERE table_schema = "wordpress"
ORDER BY data_length DESC;
Upload Directory
// Unified upload directory (optional)
define("UPLOADS", "wp-content/uploads");
Frequently Asked Questions
Q: A subsite is inaccessible?
Check:
- Whether DNS configuration is correct
- Whether your Nginx/Apache configuration supports Multisite
- Whether SSL certificates cover all domains
Q: A plugin doesn’t appear on a subsite?
- Confirm the plugin is “network-activated”
- Some plugins are incompatible with Multisite
Q: How do I migrate a standalone site to Multisite?
- Back up the original site
- Install a fresh Multisite instance
- Use import tools to migrate content
- Update internal links
Q: How do I extract a subsite from Multisite?
- Export the subsite’s content
- Install a standalone WordPress instance
- Import the content
- Migrate uploaded files
- Update URLs in the database
Recommended Plugins
| Plugin | Purpose |
|---|---|
| User Switching | Quickly switch between users |
| Multisite Enhancements | Enhance the admin interface |
| NS Cloner | Clone sites |
| WP Multisite (Wenpai Multisite) | Multisite subscription platform |
Best Practices
- Plan ahead: Decide between subdomain or subdirectory mode
- Centralize management: Use network-level themes and plugins
- Control permissions: Assign Super Admin roles judiciously
- Implement backups: Back up the entire network consistently
- Monitor resources: Track database and storage growth
For Multisite issues, tag @multisite experts for assistance!
FAQ Guidance (Multisite)
Frequently searched keywords:
- Complete Guide to WordPress Multisite
- Best Practices for Mapping Independent Domains in WordPress Multisite
- Multisite Dashboard and Site Network Governance Solutions
Related topics: