Hey d4011 -
Thanks for the answer. I'll come back to this in a couple hours as my 22 hour work day is starting to catch up to me. Thanks again.
Main Topics
Browse All TopicsI'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?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi d4011 -
I have not abandoned this thread, I thank you for your help. I got tied up at a client's site the last 2 days so I will be back working on this stuff this weekend. Thank you for your patience and sorry for asking so early, I thought I would have time to work on it. I'll get this finished up and assign points ASAP.
Cheers,
Brian
Business Accounts
Answer for Membership
by: d4011Posted on 2009-11-04 at 01:33:03ID: 25737652
Hi mycarefreepc,
i never saw AddHandler in a Files directive. Do you have anything in the error logs?
I'm sure you cat set AddHandler in a Location directive.