Forum Moderators: phranque
rewrite only pages that end with the .php suffix. That's what I need to do, and then leave the .html pages unaltered.
mod_rewrite does not rewrite your .php files and "make" .html URLs for them. mod_rewrite that the request does or does not need to be rewritten. That clue should come from the structure of the URLs you decide to use within your site.
RewriteCond %{DOCUMENT_ROOT}/$1.html !-f
RewriteRule ^([^.]+)\.html$ /$1.php [L]