Hi all - I'm discovering today that I'm more of a newbie at htaccess then I had thought, thus I was wondering if anyone might be able to offer some pointers as to where the answer might lie.
In essence I'm trying to create an .htaccess set of rules that say
* If file in directory exists, run it
* If file in directory doesn't exist, default to the CMS (in this case Wordpress).
I've tried both of the following (along with other similar variations that I shan't flood the page with) in the root .htaccess without joy
RewriteRule ^folder/index2.\php$ - [NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{REQUEST_URI} ^/folder/index2\.php [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
From that I can say that the real file is /folder/index2.php and what I'd like to achieve is when it's not that file being called up, Wordpress does in its place ('folder' is set up in a category in Wordpress - if the folder doesn't exist it works fine, when it is created wordpress 404s when attempting to generate a CMS page).
Any suggestions for where I might be going wrong in this quest?
Thanks :)