ExileDesigns | Webdesign, illustrations & more

Parlez-vous français ? Subscribe to RSS

Multiple blogs on a single domain?

Posted on March 3rd, 2008 in "Webdesign Techy Tips"

It is possible by running multiple Wordpress installations in different folders. In my case, I wanted to keep an install at the root of the domain, but also wanted to add a fresh installation in a new folder, for other purposes.

This can be done whenever you have only one database or several ~ the technique is a bit different for each case. You will find in the Wordpress codex enough informations on how to perform these installations : Installing Multiple Blogs.

However, and despite following those instructions, I quickly ran into problems. My installation was working just fine with the default permalink structure, but as soon as I tried to customize it, every page and article was linking on my blog located at the root (pointing on a brilliant 404 error)!

Here’s a solution!

How to get a correct permalink structure

With multiple blog installs (on the root, and on other folders).

  1. Duplicate your .htaccess file located at the root of your website. It should contain the following lines:
    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress
  2. Edit two lines, indicating your installation folder.
    I.e. if my fresh install should be located at www.exiledesigns.com/books:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /books/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /books/index.php [L]
    </IfModule>
    # END WordPress
  3. Save as a new .htaccess file and upload it in your new folder directory (here: books).

That’s it, you can now properly customize your permalinks!

The solution was kindly offered by Mochu, a mod on the very helpful Wordpress support forums. Thanks!

You can leave a response, or trackback from your own site.

Leave a Reply

CommentLuv Enabled
Go to the top of the page