By 

How to Create Multisite in WordPress

How to Create Multisite in WordPress

How you can create and set up a WordPress multisite to build a network of websites. We assume that you already installed a WordPress Single Site.

Below are the steps for the WordPress Multisite

  • Allow Multisite in wp-config.php
  • Install the WordPress Network
  • Add some code to wp-config.php and .htaccess
  • Menu network administration and the network settings
  • Add a new website to the network
  • Install Plugins and Themes in the WordPress multisite

Before starting the create multi-sites take a backup of your WordPress installation

Step 1:

The first step is to activate the Multisite feature in the file wp-config.php.
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. */

Save the file wp-config.php.

Now enable the Multisite feature in your WordPress. But we haven’t completed it yet. The next step is to install the network.

Step 2: log in to your website.

In the left sidebar under Tools, you will find the menu tab Network Setup, where you can configure your WordPress Multisite.

Select whether you want to use subdomains for the sites in your network (e.g. site1.example.com) or whether you want to have them installed in subfolders (e.g. example.com/site1). This setting affects all the sites in your network, you cannot change that later on. Do you need a site to be mapped to a top-level domain (e.g. mydomain.com)? This is possible with domain mapping.
Enter your multisite title and email Address

Click the Install button.

When you clicked the Install button then we will receive some code and we need to add this code to .htaccess file

The snippet looks like this, but adapted to your own site:
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 ^([_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]

Our multisite environment is starting now So we need to go into the WordPress dashboard and add new Subdomains

Similar Blog Posts

How to rank my WordPress website on Google?

Search engine optimization is an accumulation of techniques and strategies used to increase the range…

Best Way to style Contact Form 7

We should perceive how we can style individual fields in a contact structure. There are…

Make a Custom Page Template in a WordPress Theme

Basically all the pages and posts that are created on a WordPress website is handled…