How do you make just ONE .html page run as .php using HTACCESS?

Joe

New member
If I put: "AddHandler application/x-httpd-php5 .html .htm" (without the quotes) into my .htaccess file, it makes all html/htm files run as php, without me needing to manually change the file extensions (from .html to .php).

However, I only use PHP on the index page, and am concerned that this will slow everything down (because it makes ALL pages run as .php instead of just the index page).

I tried <Files index.html>AddHandler application/x-httpd-php5 .html .htm</Files> but it just produces an internal error.

Does anybody know how to do it?
 
Back
Top