No ratings yet.

 

 

 

 

 

 

 

How to setup multisite feature in wordpress

When You Install WordPress…

I hope that you already know how to install wordpress otherwise you can search this topic and check it on this website.
a nice and easy tutorial for understaning wordress and its use.
thanks and now comes to topic of wordpress multisite installation as you know already that all wordpress files reside /public_html files as it is going to be your root
folder.

Now wordpress has come to rescue for multisite in worpdress 3.5 version.

simple install of wordpress multisite as go to your database and change the prefix of wp_ to wp1_
,wp_ to wp2_ etc. and continue this procedure until it comes to end of your desired domains.
This can be done when wordpress installation happens first time as it requires different configuration from you then you can use table prefix .ok

Now keep this thing in mind for using multisite you must use example.com instead of www.example.com.
That helps a great and definite for multisite features on
And your site works more better in perspective of seo.

Test Pretty Permalinks
Before you turn on Multisite, make sure you can use Pretty Permalinks.
This essentially tests your server’s ability to use mod_rewrite, which is
that cool thing that translates URLs from http://example.com/?p=1 to
http://example.com/hello-world/
Note:mod_rewrite must be on your server otherwise it would create conflicts on server.
I hope you know how to use pretty permalinks structure in your site otherwise there you go to general and go to reading and change permalink status .

Now time comes to multisite, you can take what you want from your site using permalinks what url structure etc. whould happen to your site.
Sub Site #1: http://site1.example.com/
or
Sub Site #1: http://example.com/site1/
It depends on your decision.
Sub Site #1: http://example.com/site1/ would create blog like situation.
Now go to apache and see or setup there
ServerName yourdomain.com
ServerAlias yourdomain.com *.yourdomain.com
DocumentRoot /home/yourdomain/public_html/
ServerAdmin webmaster@yourdomain.com

Now follow these easy steps which are very important .
1-Second, you must make sure your DNS record is correctly configured for wildcard subdomains. Most are, by default,
 however you may need to add in a line like this:
2-The Server Alias line with the *.yourdomain.com is what controls this. If you do not have access to change this, ask your webhost for support. More and more hosts are enabling this by default.

Now time comes to install plugin on your primary domain by creating a nework which allows you to do multisite.

To enable the Network Setup menu item, you must first define
multisite in the wp-config.php file.
Open up wp-config.php and add this line above where it says
define(‘WP_ALLOW_MULTISITE’,true);
Now go to tool box under your dashboard , there you would see network setup and select the option
subdomains or subfolder option.
Open up wp-config.php and add this line above where it says
define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, true);
$base = ‘/’;
define(‘DOMAIN_CURRENT_SITE’, ‘example.com’);
define(‘PATH_CURRENT_SITE’, ‘/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1);

Now go to your .htaccess file in your main directory .
put these following lines there !
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Now time comes to logout and login
NOW happy multisiting and you are now with basic setup

Please rate this