I am changing a website that has some pages ending with .htm and some pages ending with .html into php.
All site names, folders and structures remain the same and only the extension will change from .htm and .html to .php.
What would be the correct rewrite rule for the .htaccess file be in this regards?
After some research I came up with the following and want to make sure that this would be correct:
RewriteRule ^(.*).htm /$1.php [R=301,L]
RewriteRule ^(.*).html /$1.php [R=301,L]
Would above code in the .htaccess file be correct and is there something else I would have to include?