The first thing you’ll need to do is go to the directory where your WordPress site is installed and open up your WordPress config file.
Open that file and find the copy-paste this code…
define('WP_ALLOW_MULTISITE', true);
…just above the “That’s all, stop editing! Happy blogging” comment.
Once that’s done, save your “wp-config.php” file but keep it open because we’ll be editing it again in a moment. Next you go to the WordPress admin area and locate the option on your WordPress admin bar for network setup. You’ll find this option under “Tools.”
Once you click that option, you should see a screen where you put in your network name and the admin email and click “install.” If you see a message that asks you to deactivate your plugins first, make sure you do that as instructed at the start of this tutorial.
Once you’ve click the “install” button, you’ll see a screen which has two blocks of code. This is the first one:
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
$base = '/wp/';
define('DOMAIN_CURRENT_SITE', 'tutorialmini.com');
define('PATH_CURRENT_SITE', '/wp/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
This codes above goes in your “wp-config.php” file just under the “define(‘WP_ALLOW_MULTISITE’, true);” code which you’ve already pasted in.
Once again, save the “wp-config.php” file but leave it open because we’ve got one more thing to do in there.
The next piece of code in your WordPress admin dashboard should look like this:
RewriteEngine On
RewriteBase /wp/
RewriteRule ^index\.php$ – [L]
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
This codes above goes into your “.htaccess“ file which you’ll find under the same directory as your “wp-config.php” file.
Once that’s pasted in, save and close the “.htaccess” file and log out of your WordPress admin. Then log right back in. When you do, you should be able to open up an option to view your network admin area.
Now you’re ready for the next step…
This is a part of WordPress Multisite Network With Multiple Domains tutorial.
The post WordPress Multisite Network With Multiple Domains – Prepare WordPress for Multisite appeared first on Tutorial Mini.
Related posts:
- WordPress Multisite Network With Multiple Domains
- WordPress Basic – Installing WordPress – Famous 5-Minute Install
- WordPress Excerpts – Remove the [...] excerpts from the last
via Tutorial Mini http://tutorialmini.com/wordpress-multisite-network-with-multiple-domains-prepare-wordpress-for-multisite/
No comments:
Post a Comment