I've got the following in my .htaccess file so that I can execute PHP on select HTML landing pages (for dynamic keyword insertion).
AddHandler application/x-httpd-php5 .html .htm
HostGator has the following to say about this:
It is highly recommended that you never allow html pages to automatically handle php or shtml, because this forces all of your html pages to be processed by the server first. Instead, please rename your files to .php or .shtml whenever possible.
Since this sounds like it will increase page load time slightly, is it possible to restrict the AddHandler to only specific files?
I've tried:
<files test1.html,test2.html> AddHandler application/x-httpd-php5 .html .htm
</files>
But this does not appear to work as the code does not execute when I do that. Is this possible?