Bird
Raised Fist0
Wordpressframework~10 mins

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

Choose your learning style10 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.

Practice

(1/5)
1. What is the main purpose of WordPress Multisite?
easy
A. To create a backup of a WordPress site
B. To speed up a single WordPress site
C. To run multiple WordPress sites from a single installation
D. To convert WordPress into an e-commerce platform

Solution

  1. Step 1: Understand the definition of Multisite

    WordPress Multisite allows managing many sites using one WordPress installation.
  2. Step 2: Compare options with this definition

    Only To run multiple WordPress sites from a single installation matches this purpose; others describe unrelated features.
  3. Final Answer:

    To run multiple WordPress sites from a single installation -> Option C
  4. Quick Check:

    Multisite = multiple sites, one install [OK]
Hint: Multisite means many sites on one WordPress install [OK]
Common Mistakes:
  • Confusing multisite with backups
  • Thinking multisite speeds up a single site
  • Mixing multisite with e-commerce features
2. Which file must you edit to enable WordPress Multisite?
easy
A. wp-config.php
B. functions.php
C. index.php
D. .htaccess

Solution

  1. Step 1: Identify the file for enabling multisite

    WordPress requires editing wp-config.php to enable multisite mode.
  2. Step 2: Check other files' roles

    functions.php is for theme functions, index.php is main template, .htaccess handles URL rewriting but not enabling multisite.
  3. Final Answer:

    wp-config.php -> Option A
  4. Quick Check:

    Enable multisite in wp-config.php [OK]
Hint: Enable multisite by editing wp-config.php [OK]
Common Mistakes:
  • Trying to enable multisite in functions.php
  • Editing .htaccess instead of wp-config.php
  • Confusing index.php with config files
3. After enabling multisite, which two options can you choose for new site URLs?
medium
A. Subdomains or subdirectories
B. Custom domains or IP addresses
C. File paths or query strings
D. Port numbers or protocols

Solution

  1. Step 1: Recall multisite URL options

    WordPress multisite lets you choose between subdomains (site.example.com) or subdirectories (example.com/site) for new sites.
  2. Step 2: Eliminate unrelated options

    Custom domains require extra setup, file paths and query strings are not multisite URL types, ports and protocols are unrelated.
  3. Final Answer:

    Subdomains or subdirectories -> Option A
  4. Quick Check:

    Multisite URLs = subdomains or subdirectories [OK]
Hint: Multisite URLs use subdomains or subdirectories [OK]
Common Mistakes:
  • Thinking custom domains are default multisite URLs
  • Confusing file paths with multisite URL types
  • Mixing ports or protocols with site URLs
4. You enabled multisite but new sites show 404 errors. What is the likely cause?
medium
A. wp-config.php missing multisite enable line
B. Missing or incorrect .htaccess rewrite rules
C. Using subdomains without DNS setup
D. Not activating a theme for new sites

Solution

  1. Step 1: Understand 404 errors after multisite setup

    404 errors usually mean URLs are not routed correctly, often due to missing or wrong .htaccess rewrite rules.
  2. Step 2: Check other options

    Missing multisite enable line causes multisite not to work at all, subdomain DNS issues cause different errors, theme activation doesn't cause 404.
  3. Final Answer:

    Missing or incorrect .htaccess rewrite rules -> Option B
  4. Quick Check:

    404 after multisite = fix .htaccess rewrites [OK]
Hint: Fix 404 by updating .htaccess rewrite rules [OK]
Common Mistakes:
  • Ignoring .htaccess rewrite rules
  • Assuming theme activation fixes 404
  • Confusing DNS issues with rewrite problems
5. Which of the following is a correct sequence to set up a WordPress Multisite network?
hard
A. Edit .htaccess first, then install multisite plugin, then create sites
B. Install a plugin, edit functions.php, create new sites, then configure DNS
C. Create new sites first, then edit wp-config.php and .htaccess
D. Edit wp-config.php to enable multisite, configure .htaccess, choose subdomain or subdirectory, then create new sites

Solution

  1. Step 1: Identify the correct setup order

    First, enable multisite by editing wp-config.php. Then configure .htaccess for URL rewriting. Next, choose subdomain or subdirectory setup. Finally, create new sites.
  2. Step 2: Evaluate other options

    Multisite does not require a plugin; editing functions.php or creating sites before enabling multisite is incorrect.
  3. Final Answer:

    Edit wp-config.php to enable multisite, configure .htaccess, choose subdomain or subdirectory, then create new sites -> Option D
  4. Quick Check:

    Enable multisite in config, set rewrites, pick URL type, add sites [OK]
Hint: Enable multisite in config, set rewrites, then add sites [OK]
Common Mistakes:
  • Trying to create sites before enabling multisite
  • Relying on plugins instead of config edits
  • Editing wrong files in wrong order
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard