Direct to the point question: I am using AddHandler to make .html render as PHP files. I wish to change that into a URL rewrite but I am not good at regex and mod_rewrite stuff. I wish to remove the add handler and do some kind of rewrite that makes all *.html really display *.php
Optional to read long story why I want to do this:
I use cPanel servers with several websites and many with custom file extension, or using .html to be rendered as .php by using AddHandler in my .htaccess file. In older Apache versions I used to use AddType.
Now that I have moved over to several VPS servers instead of a dedicated, I have less control on the server, but I put all my eggs in several baskets and minimizes problem websites during downtime issues.
One thing I noticed though with cPanel is whenever they upgrade it, or recompile Apache, for some reason it comments out all # AddHandler lines in all .htaccess files in all accounts. And since these hosting companies don't always tell us when this happens, I just suddenly get complains from everyone.
This seems to be the only line cPanel comments out during upgrades. So I was thinking of doing a rewrite solution instead so I touch the sites less often when these not anticipated cPanel upgrade happens.