Category Covered

How to create WordPress Multisite

 
 

WordPress Multisite

is a special form created by WordPress, which allows network of multiple websites/blogs, all running on a single installation of WP. It’s a WP feature, which can be turned on or off anytime. End users of a network can create their own sites. A multisite network is a collection of sites/blogs that all share the same WordPress installation. They can also share plugins and themes as well.
    To create WPMU or Multi site on wordpress follow the given steps :-

 

Step 1. Installation: If you have an existing wordpress installed make sure that you keep  all the Database and files backup or Install a fresh copy. And also deactivate all the plugins and you can activate them again.

 

 Step 2. Allow WPMU: To enable multi site you have to first change/edit  the wp-config.php file in your site. In wp-config.php

 

define(‘WP_ALLOW_MULTISITE’, true);

 


Just before the line

 

  /* That’s all, stop editing! Happy blogging. */

 

Save and login to admin panel of your site. Here under tool menu you will see a link “Network Setup” choose subdomain and press install. It will give you the following code. Here "localplumbingdaddy" is my root folder name.

 

define( 'MULTISITE', true );

 

define( 'SUBDOMAIN_INSTALL', false );

 

$base = '/localplumbingdaddy/';

 


define( 'DOMAIN_CURRENT_SITE', '192.158.1.2' );

 

 define( 'PATH_CURRENT_SITE', '/localplumbingdaddy/' );

 


define( 'SITE_ID_CURRENT_SITE', 1 );

 

define( 'BLOG_ID_CURRENT_SITE', 1 );

 

 

 

 

 

 

 

 

 

Step 3 : Now create or modify your .htaccess file and put the following given text

 

 


 

RewriteEngine On

 

RewriteBase /localplumbingdaddy/

 

RewriteRule ^index\.php$ - [L]

 

# uploaded files

 

RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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).*) $1 [L]

RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]

RewriteRule . index.php [L]

 

 

 

 

Step 4. Now you will see “Network admin” menu on the top of your dashboard

 

 

 

Step 5. Network admin settings:

 

 

 

Create site/blog as much as you need. At the left of your WPMU site  toolbar, below the My Sites the new menu named Network admin is now the second item. Under Network Admin you can use the Dashboard item to go to the Network Dashboard screen for each site you have created.