I have moved one of my websites from a shared hosting account to a dedicated server that hosts all of my projects. I usually code in php, but this particular site is 98% .html files. The issue is that on the old shared hosting account, I was able to SSI .php files inside .html files, i.e. in index.html I could have the line:
<!--#include file="menu.php" -->
And the php would execute and display as needed. However, since moving the site, I can't get it to work. In the http.conf virtual host section, I have added (which was the same as the .htaccess file from the old shared account):
Options +Indexes FollowSymLinks
Options +Includes
AddType text/html .html
AddHandler server-parsed .html
AddHandler server-parsed .php
Now this allows the .php files to be seen, but it shows all of the code! How do I make this work?
I am using Apache version 2.0.53
Start Free Trial