I'm not very experienced with .htaccess related stuff, I was looking to get some help. Basically what I'm trying to do is this:
Any request that looks like this (example):
/foo.html
Would be rewrote to:
/foo
And any request that is a static file, I'd like it serve:
/index.html
Does that make sense? Any idea how to do this?
Example
Here's what I have so far, though it's not correct as far as I know:
RewriteRule %{REQUEST_FILENAME} !-d
RewriteRule %{REQUEST_FILENAME} -f
RewriteCond ^(.*)$ $1.html [NC,L]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(.*) /index.html [NC,L]