How to configure a WordPress multisite network

This article describes how to create and configure a WordPress multisite network. Multisite networks enable you to manage multiple WordPress from one convenient interface.

For example, you may have a main site, a blog, and an online store. Instead of creating three separate WordPress installations for these sites, you can create and manage them from a single location using a multisite network. In a WordPress multisite network, themes and plugins are installed just once, and you can activate them independently for each site. Multisite networks can also help improve overall security, because you only have to maintain and update one site.

Creating and configuring a multisite network

The following procedure assumes that you have at least one WordPress installation already configured and running. To create and configure a multisite network, follow these steps:

  1. In the directory where you installed WordPress, use your preferred text editor to open the wp-config.php file.
  2. Just above the /* “That's all, stop editing! Happy publishing. */ line near the end of the file, paste the following text:
    define('WP_ALLOW_MULTISITE', true);
  3. Save your changes to the wp-config.php file.
  4. Log in to WordPress as the administrator.
  5. Before you can enable multisite, you must temporarily deactivate all of the site's plugins. On the left sidebar, click Plugins, and then click Installed Plugins:

    WordPress sidebar - Plugins - Installed Plugins

  6. To select all of the plugins, select the checkbox next to the Plugin heading.
  7. In the Bulk actions list box select Deactivate, and then click Apply.
  8. On the left sidebar, click Tools, and then click Network Setup:

    WordPress sidebar - Tools - Network Setup

    The Create a Network of WordPress Sites page appears:

    WordPress - Create a Network of WordPress Sites page

  9. Under Addresses of Sites in your Network, select Sub-domains or Sub-directories.

    You can only choose one, and you cannot change this setting later. For a subdomain network, all of your sites must have their own subdomain (for example, and For a subdirectory network, all of your sites must have their own directory beneath the primary domain (for example, and
  10. In the Network Title text box, type a name for the WordPress network.
  11. In the Network Admin Email text box, type a valid e-mail address for the WordPress network administrator.
  12. Click Install. WordPress generates custom code for your installation to enable the network.
  13. You are now ready to enable the network, but before you do this, you should create a backup of the following files:

    • wp-config.php
    • .htaccess
  14. To enable the network, copy the custom code blocks into the wp-config.php and .htaccess files.

    • The code block for the wp-config.php file must go above the /* “That's all, stop editing! Happy publishing. */ line near the end of the file.
    • Replace any existing text in the .htaccess file with the new code block.
  15. Save your changes to the wp-config.php and .htaccess files.
  16. Log out and then log in again as the WordPress administrator. The new My Sites menu option appears in the top menu bar:

    WordPress - My Sites menu option

    All of your sites in the network appear in this menu, as well as the Network Admin menu. The Network Admin menu contains the following options:

    • Dashboard: This option provides an overview of the network.
    • Sites: This option shows each site in your network and enables you to manage them.
    • Users: This option enables you to manage users for the network.
    • Themes: This option enables you to manage themes for the network.
    • Plugins: This option enables you to manage plugins for the network.
      Remember that you disabled all of the plugins in step 7 above during network creation. Make sure you re-enable the plugins that you want to use on the network.
    • Settings: This option enables you to change general settings for the network.
    For detailed information about all of these options, please visit

    To disable the multisite network at any time, follow these steps:

    • Use your preferred text editor to open the wp-config.php file, and then remove the text you added in steps 2 and 14.
    • Restore the backed up copy of the .htaccess file that you created in step 13.

More Information

Get WordPress Hosting

Article Details

Other Articles in This Category

Show More

Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.

We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.