0
0
Wordpressframework~10 mins

Multisite network basics in Wordpress - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - Multisite network basics
Enable Multisite in wp-config.php
Access Network Setup in Dashboard
Configure Network Details (Subdomains or Subdirectories)
Update wp-config.php and .htaccess Files
Network Admin Dashboard Available
Create and Manage Multiple Sites
Sites Share Plugins and Themes, Have Separate Content
This flow shows how WordPress multisite is enabled, configured, and used to manage multiple sites sharing one installation.
Execution Sample
Wordpress
<?php
// Enable multisite
define('WP_ALLOW_MULTISITE', true);
// After setup, add network constants
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
?>
This code enables multisite and sets up network constants for a subdirectory-based multisite.
Execution Table
StepActionFile EditedResultNotes
1Add define('WP_ALLOW_MULTISITE', true);wp-config.phpMultisite option enabled in DashboardAllows Network Setup menu to appear
2Go to Tools > Network SetupDashboardNetwork Setup screen appearsChoose subdomain or subdirectory
3Fill network details and submitDashboardInstructions to update files shownShows code snippets for wp-config.php and .htaccess
4Add network constants and rewrite ruleswp-config.php and .htaccessMultisite network activatedDefines MULTISITE, SUBDOMAIN_INSTALL, and rewrites
5Reload DashboardDashboardNetwork Admin menu appearsAccess to manage sites, users, themes, plugins
6Create new sitesNetwork AdminSites created with separate contentSites share plugins/themes but have own posts/pages
7Exit-Setup completeMultisite network ready for use
💡 Setup ends after network constants and rewrite rules are added and network admin is accessible
Variable Tracker
Variable/FileStartAfter Step 1After Step 4Final
wp-config.phpNo multisite codeWP_ALLOW_MULTISITE definedMULTISITE and SUBDOMAIN_INSTALL definedMultisite constants set
.htaccessDefault WordPress rulesNo changeMultisite rewrite rules addedRewrite rules active
DashboardNo Network Setup menuNetwork Setup menu visibleNetwork Admin menu visibleFull multisite admin access
Key Moments - 3 Insights
Why do I need to add code to both wp-config.php and .htaccess?
The execution_table rows 3 and 4 show that wp-config.php sets multisite constants, while .htaccess controls URL rewriting needed for multisite to work.
What is the difference between subdomain and subdirectory setup?
Row 2 in execution_table shows you choose subdomain (site1.example.com) or subdirectory (example.com/site1) during setup, affecting URL structure.
Do all sites share content?
Row 6 explains sites share plugins and themes but have separate posts and pages, so content is unique per site.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, at which step does the Network Admin menu appear in the Dashboard?
AStep 4
BStep 5
CStep 2
DStep 6
💡 Hint
Check the 'Result' column for when 'Network Admin menu appears'
According to variable_tracker, what is the state of .htaccess after Step 1?
ADefault WordPress rules
BMultisite rewrite rules added
CNo file present
DPartially updated
💡 Hint
Look at the .htaccess row and the 'After Step 1' column
If you choose subdomain install instead of subdirectory, which step in execution_table reflects this choice?
AStep 1
BStep 4
CStep 2
DStep 6
💡 Hint
Step 2 shows where you select subdomain or subdirectory in Network Setup
Concept Snapshot
WordPress Multisite Basics:
- Enable multisite by adding define('WP_ALLOW_MULTISITE', true) in wp-config.php
- Use Dashboard > Tools > Network Setup to configure
- Choose subdomain or subdirectory URLs
- Add network constants and rewrite rules to wp-config.php and .htaccess
- Access Network Admin to create/manage multiple sites
- Sites share plugins/themes but have separate content
Full Transcript
To set up a WordPress multisite network, first enable multisite by adding a line in wp-config.php. Then, in the WordPress Dashboard, go to Tools and select Network Setup. Here, you choose whether your sites use subdomains or subdirectories. After submitting, WordPress shows code snippets to add to wp-config.php and .htaccess files. Adding these activates the multisite network. Once done, a Network Admin menu appears in the Dashboard, letting you create and manage multiple sites. Each site shares plugins and themes but keeps its own posts and pages separate. This setup allows managing many sites from one WordPress installation.