Enabled WP Multisite from WP standard site


To change WordPress from the standard single site install to a WordPress Multisite which allows you to create a network of sites you need to:

Update your wp-config.php file
Choose the structure of your Multisite in terms of whether you want to use sub-domains or sub-directories
Add the extra lines your WordPress installation generates into your wp-config.php
Add the generated mod_rewrite rules to your .htaccess file, replacing other WordPress rules
Set up your mu-plugins folder

You do this as follows:
Updating your wp-config.php file

1. Locate your wp-config.php file on your hard drive.
2. Right mouse click on your wp-config.php file.
3. Add the following line to your wp-config.php file:

define(‘WP_ALLOW_MULTISITE’, true);

above where it says /* That’s all, stop editing! Happy blogging. */:

Setting up your sub-domains or sub-directories

1. Now go to Tools > Network Setup and choose whether you want to use sub-domains or sub-directories

Choose wisely as you can’t change this later
Contact your host first if you want to use sub-domains to ask if they are able to set up Wildcard DNS records for your site as not all hosting companies support this option

a. Sub- domains

If you want to use sub-domains you will need to contact your host and ask them to set up Wildcard DNS records for your site e.g. log into your support area of pSek and ask them to set up Wildcard DNS records for your site.

Sub-domains have site URLs like site1.domain.tld and site2.domain.tld
Not all companies allow you to use sub-domains and you need to check with your hosting company before choosing this option.

b. Sub-directories

This is the easier option because you don’t need to get your hosting company to set up Wildcard DNS records for your site.

Sub-directories have site URLs like domain.tld/site1 and domain.tld/site2

2. Once you have chosen between sub-domains or sub-directories and double-checked all details are correct then click Install.
3. Once you’ve clicked Install you should see a page titled Enabling the Network with further instructions for creating your network.
4. Before you commence the next step create a backup of your wp-config.php and .htaccess file by downloading them onto your hard drive.

Add the extra lines your WordPress installation generates into your wp-config.php

1. Add the supplied code for your wp-config.php file from the ‘Enabling the Network’ page above the line reading /* That’s all, stop editing! Happy blogging. */: and remove the earlier added define(`WP_ALLOW_MULTISITE`, true); line. As of WordPress 3.8, the code you should be copying looks like this:

define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, false);
define(‘DOMAIN_CURRENT_SITE’, ‘wpsingle.net’);
define(‘PATH_CURRENT_SITE’, ‘/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1);

2. Save your new wp-config.php file and reupload it to the root of your website.
Add the generated mod_rewrite rules to your .htaccess file, replacing other WordPress rules.

1. Add the supplied rules for your .htaccess file from the ‘Enabling the Network’ page to replace all other WordPress rules in the .htaccess file with the supplied code. As of WordPress 3.8, the code you should be copying looks like this:

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]

2. Save your new .htaccess file and reupload it to the root of your website.

The examples above are for subdirectories. Subdomains will be a bit different, but either way you should always copy exactly what WordPress gives you on that screen.
Set up your mu-plugins folder

Before you can install mu-plugins on your WordPress Multisite installation you need to create a mu-plugins folder as follows:

1. Create your mu-plugins folder in wp-content using FileZilla by clicking on right clicking and selecting Create directory.
2. Add the directory name mu-plugins and click OK.
3. Right click on your mu-plugins directory and select file permissions.
4. Set the file permission to 755 and click OK.
network

Checking out your Network Admin dashboard area

Once you have completed all these steps and uploaded all files you will need to log back into your website. You should now see the Network Admin link in the My Sites dropdown menu on your WordPress admin bar.

network-dashboard-link

Once in the Network Admin dashboard you can quickly change back to the “Site Admin” Dashboard, by clicking on the dashboard link to any of your sites under My Sites.

The Network Admin Dashboard

The “Network Admin” dashboard is a separate dashboard area for all Network Management on a WordPress Multisite install; this is where you access your Super Admin area.

The “Network Admin” link is only viewable and  accessible to users who have been granted Super Admin privileges for the Network.

You access the “Network Admin” link via the My Sites dropdown menu on your WordPress admin bar.

network-dashboard-overview

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: