I'm sure this is probably really simple, but my knowledge really isn't good in this area, and I don't seem to be able to get it right.
I have the following file structure:
/cms (renamed from system)
cms.php (renamed from index.php, added to DirectoryIndex in .htaccess)
.htaccess
index.html
page1.html
/css
/js
I also have the .htaccess from the CI wiki. The part I think needs adjusting is:
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to cms.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ cms.php?/$1 [L]
I want most files that already exist to be accessible, e.g. and .js, .css, .png, .swf etc, but any .htm or .html to be processed by cms.php.
For example, if the user requests http://localhost/index.html, index.html gets passed to cms.php, or if http://localhost/dir/page.html is requested, dir/page.html is passed.