Here is my .htaccess file but I am having trouble configuring it to parse PHP in .htm files:
AddType text/html .shtml .html .htm AddHandler server-parsed .shtml .html .htm Options Indexes FollowSymLinks Includes
Right now it runs SSI and I don't have to use the .shtml extension but I want to run PHP as well. Can someone please tell me how to properly configure to parse PHP without having to use the .php extension? Thanks in advance.
Somewhere is most likely an "AddType" line to tell the server what to do with PHP files. Something like
AddType application/x-httpd-php .php
There's nothing stopping you from putting .htm or .html in there as well (and dropping them from the line you quoted in your post). In other words, say to the server that files ending with .html are PHP files.
Ok so in other words, use .html for my PHP files and .htm for my SSI?
I could do that, or I can use <? include "file.php"; ?> instead of SSI.
Now that I think about it, why would one use SSI over PHP?