The more I try to work with this the more I agree with what it says at the beginning of the Apache manual mod_rewrite article about it being voodoo- cool voodoo- but still voodoo. I thought I understood it, but since it isn't working, I must not be as close as I thought. I'm trying to transfer a website from mostly being .htm files to being to all being .php files. After looking at lots of different docs I came up with this for my .htaccess file:
LoadModule rewrite_module modules/mod_rewrite.so
RewriteRule ^.+(\.htm)$ $.php [R=301,L]
For awhile I somehow had it so that it would redirect all of my .css files to .php (that was fun... not) but it never seems to do the same thing for the only file type that I thought I was specifying- .htm. Any help would be greatly appreciated!