Thinking about switching your site to includes?
Posted by Jesse Rodgers on March 30, 2005 at 04:34 PM
I am slowly working in PHP includes in the header and footer of my pages. It is a great may to manage content across sites but today I learned something. Save yourself a load of headache and trouble of having to switch file types and add this ditty your .htaccess file:
AddType application/x-httpd-php .php .php3 .phtml .html
That way your .html files act like PHP and you can use PHP includes. Not satisfied with PHP? How about shtml…
AddType text/html .html
AddHandler server-parsed .html
Now back to fixing my muck up this morning an remember kids – do not change file names unless you really really really have to. Here is a good .htaccess tutorial that you can refer to as well.