By Deep Wadhwa Our Bestseller: WordPress Themes
Recently, I have come to know about an interesting feature of WordPress. The feature is called Multisite Network and is very useful for a website. Now you can create a multisite network on WordPress and operate the multiple sites from a single network.
What is a Multisite Network?A multisite networkallows you to run different sites on WordPress. That is from a single network, you can run multiple dashboards. And on each dashboard there will be an individual theme installed. Their database will be individual. The individual sites in the network will be called as virtual sites.
In the following article I will be explaining the steps to create a multisite network on WordPress. And the process is very simple to implement. Just make sure that you have installed WordPress on your server. If you have not installed WordPress yet then you can read the instructions in the post How to install WordPress and install the WordPress on your server.
Let’s start from the basics.
I assume that you have installed the WordPress on your server already and you have created a database for it.
Writing the code Place the following code in the wp-config.php file . This will enable the Network Setup menu. /* Multisite */ define('WP_ALLOW_MULTISITE', true);Click on the Network Setup option.
Dashboard
–> Tools –> Network Setup
Now on the next page, just double check the details and click on Install button.
As soon as you click on the Install button, you will be redirected to a page as shown below.
Here you will have to make changes to the wp-config.php file and .htaccess file .
Making changes to the wp-config.php filePlace the code given below in the wp-config.php file and save it.
define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); define('DOMAIN_CURRENT_SITE', 'localhost'); define('PATH_CURRENT_SITE', '/multisite/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1);Overwrite the code as shown in the screenshot with the following code in the .htaccess file and save it.
RewriteEngine On RewriteBase /multisite/ 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] Overwriting the code.After replacing the code refresh the page and it will ask you to log in again.
Network Admin Settings After logging in to your Dashboard, you can install any number of themes that you want to use on websites. Install the number of themes and make them Network Enable.My Sites –> Network Admin –> Sites And add multiple new sites.
If you want to make multiple websites from a single theme then this multisite network feature of WordPress will complement your objective. Just you need to keep in mind few basics. That is:
You have installed the WordPress on your server and have created a database for it. The multiple themes you have installed on your dashboard are network enabledHope you find this article useful and implement the above procedure easily. Feel free to share your comments and feedback below. Just in case you face any problem, let me know I will try my best to resolve your issues.
About Deep Wadhwa
author
"I believe in basics which builds up perfection and enhance creativity. Thanks to Blogging through which I can share my experience with you!!!!".
Comments and Responses
0 nhận xét:
Đăng nhận xét