«

»

Feb 23

Create a WordPress Network

Since WordPress now has the network capability built-in, it’s very straight forward to create a network of blogs.

WordPress handles two different types of network:

  • sub-domains – i.e. http://<blog_name>.your-site.com
  • sub-sites – i.e. http://your-site.com/<blog_name>

The sub-domain approach requires more work in a lamp stack, so we’ll go with sub-site approach:

  1. Add define(‘WP_ALLOW_MULTISITE’, true); to wp-config.php
  2. In Administration > Tools > Network, configure the network, and then install
  3. The page will generate two blocks of code for you to use
  4. Copy the first generated block into wp-config.php
  5. Copy the second block into .htaccess file at the wordpress root directory
  6. Make sure Apache’s mod_rewrite is enabled via a2enmod rewrite
  7. Logout/login again
  8. At this point you will see a “Super Admin” panel in the Administration page. ¬†Network is enabled

Once the network is enabled, we can create multiple blogs, and have different domains map to the blogs.

Share

2 pings

  1. Setup Domain Mapping to Wordpress Network | Continuous Learning

    [...] Continuous Learning My journey in life, technology, entrepreneurship, and learning Skip to content HomeAbout ← Create a WordPress Network [...]

  2. Enable SSL Protection of the Admin Area in Wordpress | Continuous Learning

    [...] approach, however, does not work well with blog networks.  Specifically, when you try to login from sub-sites with domain mapping, it does a double [...]

Leave a Reply to Setup Domain Mapping to Wordpress Network | Continuous Learning Cancel reply

Your email address will not be published. Required fields are marked *

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=""> <strike> <strong>

To use reCAPTCHA you must get an API key from https://www.google.com/recaptcha/admin/create