The 3 Week Diet

Create A Multisite Network On WordPress

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);

After writing the above code, save it . Now visit your Dashboard. Under the dashboard, in the Tools option, you will see an option of Network Setup .Setting up the Network

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.

Enable the Network

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 file

Place 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); Making changes to the .htaccess file

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.

Placing the actual 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.

Creating Multiple Sites on the Network Follow this step
My Sites –> Network Admin –> Sites And add multiple new sites.

On the next page fill up the details of your website and click on Add Site button.

Now visit the Sites page, you will see the list of sites which you have added.

You can operate the dashboard of your multiple sites from here and easily make changes to the sites.Conclusion

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 enabled

Hope 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

Share on Google Plus

About Unknown

250 x 250 The 3 Week Diet tips skill football
    Blogger Comment
    Facebook Comment

0 nhận xét:

Đăng nhận xét