How To Install and Set Up a WordPress Multisite

1. Allow Multisite in wp-config.php

The first step is to activate the Multisite feature in the file wp-config.php, that is to set up a FTP connection to your website.
How: Open the file wp-config.php, which is is located in the main directory of your WordPress, and add the line

define('WP_ALLOW_MULTISITE', true);
above the line
/* That's all, stop editing! Happy blogging. */

2. Install the WordPress Network

1.Refresh the page in your browser and log in to your website.
2.In the left sidebar under Tools you will find the menu tab Network Setup, where you can configure your WordPress Multisite.
3.Decide whether you want to use subdomains for the sites in your network (e.g. or whether you want to have them installed in subfolders (e.g.
IMPORTANT:This setting affects all the sites in your network, you cannot change that later on!

3. Add some code to wp-config.php and .htaccess

Add the first code snippet to your wp-config.php directly above the line
/* That's all, stop editing! Happy blogging. */
code snippet:

define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', 'My Website'); define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1);

Add the second code snippet to the .htaccess file and replace other WordPress rules

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]

Save both files.

4.Menu network administration and the network settings

When you changed the wp-config.php and the .htaccess, log into your WordPress admin area again. In the upper admin bar, you now see the new menu Network Admin. It’s displayed always, so you can always enter the admin area of the network, no matter on which site of your network you are.

5. Add a new website to the network

A WordPress multisite with only one website doesn’t really make sense. To a WordPress multisite, you can add as many websites as you want – always and any time, so, it needn’t be at the beginning. To enhance your website with a new site, do the following :
Go to My Sites → Network Admin → Sites and click Add new.