Running two versions of wordpress

wordpress logoI set up a second wordpress installation in a directory named /jasmine so that Neil and I could blog about our daughter Jasmine who has chronic renal failure. However, because I fiddled with the .htaccess this technical blog kept serving up Error 404 pages instead of the blogs I have written.

There are ways of running two wordpress blogs with one installation, but if you decide to run two completely separate installations of wordpress like I have then you will need to make sure you have two .htaccess files. One in each directory. So, in the home directory my .htaccess (or the relevant lines) looks like this:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

And, in the /jasmine directory the .htaccess file looks like this:

RewriteEngine On
RewriteBase /jasmine/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /jasmine/index.php [L]