How to create multi site in wordpress using NS Cloner?

1. Install WordPress Multisite – the Requirements
Before you start to install the WordPress multisite, please make sure that:

You already have a WordPress installation
Pretty Permalinks are activated. This means your URLs should not look like this http://example.com/?p=2345, but rather like this http://example.com/my-page
All plugins are deactivated
Important: you have a backup of your WordPress installation
You have FTP access to your WordPress installation
2. Allow Multisite in wp-config.php
The first step is to activate the Multisite feature in the file wp-config.php.

Set up a FTP connection to your website.
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 you enabled the Multisite feature in your WordPress installation. But you haven’t finished yet. The next step is to install the network.

3. Install the WordPress Network
Refresh the page in your browser and 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.

Add the following to your wp-config.php file in /var/www/html/wordpress/ above the line reading /* That’s all, stop editing! Happy publishing. */:
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false); //by default it is true but if you want to use sub directory in NS Cloner then you can make it to false
define('DOMAIN_CURRENT_SITE', 'www.example.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);

define('BLOG_ID_CURRENT_SITE', 1);

Add the following to your .htaccess file in /var/www/html/wordpress/replacing 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]

4. Install NS Cloner V3 plugin
  • Go to Original site not from network admin
  • Then clone site using NS Cloner. 
  • Give new Give the Target site title
  • Give the Target site a URL (or "Name" in WP terminology), example www.example.com/dzongkha
  • It will take not more than 3 minutes
After site cloning is done go to My site and you will find two site.

Now you can add as many site as you want



Comments

Popular posts from this blog

Preventing new account creation

Rclone syncs your files to cloud storage (Gdrive)