#RewriteEngine on
#RewriteRule test123.php test123.html
RewriteEngine On
RewriteCond %{REQUEST_URI} ^(.*)\.html$
RewriteRule ^.*\.html$ %1.php [L]