View Full Version : Using PHP in .shtml pages

01-12-2011, 12:08 AM
I have a huge site with all .shtml extensions and includes, and I want to use some PHP includes sitewide... but when I do and rename the file with a .php extension, the .shtml includes don't show.

My htaccess is this right now:

Options +Includes
AddType text/html .shtml .shtm .htm .html
AddHandler server-parsed .shtml
AddHandler application/x-httpd-php .shtml .shtm .htm .html
AddHandler php5-cgi .php

What can I do, if anything, to be able to show both the existing .shtml includes and the new PHP includes? Or am I out of luck and I have to rename every .shtml to PHP? Thanks.