Articles Comments

Earning Money On The Net » Wordpress Multisite » Setting Up Multi Sites in WordPress – Part I – The Config File

Setting Up Multi Sites in WordPress – Part I – The Config File

WordPress 3.0 now has the ability to have multiple sites running from the one database. The advantage of this is from one install you can have unlimited sub domains (or folders) and you can set the main configuration so that you do not have to do an install for each site. This is a great time saver. It does take a bit of work initially to set up WordPress so that the sub domains will work, but it is worth the effort in the long run.

The first thing you need to do is set up the config file properly and here is how to do it.

Open up the wp-config.php file which will be in the root directory of your WordPress site. If you are installing by uploading all of the files and it is a clean install, you will have to edit the wp-config-sample.php file and then rename it to wp-config.php.

Most Important: Do Not Use Word to edit these files – use a word editor instead like notepad!

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

define(‘WP_ALLOW_MULTISITE’, true);

so the last lines in your wp-config.php file should be:
define(‘WP_ALLOW_MULTISITE’, true);
/* That’s all, stop editing! Happy blogging. */

Now save that file and upload it to your website root directory.

Written by

Filed under: Wordpress Multisite · Tags: , , , , , , , , ,

One Response to "Setting Up Multi Sites in WordPress – Part I – The Config File"

  1. Fan says:

    awesome blog…

    Very awesome blog !! I couldnt have wrote this any better than you if I tried super hard hehe!! I like your style too!! it’s very unique & refreshing…

Leave a Reply

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>