Hi everyone. This is my very first post on the forum so pleased to meet you all.

I'm hoping someone might be able to help with a problem I'm having due to my lack of experience and knowledge with htaccess.

What we're doing is running IP Boards forum software and wordpress both in the root directory. The IPB has the index.php file (because of having indexed url's) and the new Wordpress's index.php file has been renamed to blog.php.

At the very top of the htaccess file we've added: DirectoryIndex blog.php index.php - so the new wordpress opens first.

The problem I'm having is trying to have 2 rewriterules in the htaccess file for the friendly urls from the forum software and also the permalinks for the new wordpress.

I can only seem to have one or the other.

Please could anyone tell me, or point me in the right direction to get both working.

This is what I'm doing so far but sadly no joy, but works fine if we remove one of the condition and rewrites.

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /

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

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog.php [L]
</IfModule>

Many thanks in advance.