I have successfully used php in the index page for a year. I recently tried to improve the site by using an include for common html code such as mastheads and footers. I have used this technique successfully in other sites where all of the pages had .html extensions. When I used the same code in the index.php it would not work. I then tried it on the non-php pages that had a .html extension and it would not work.
I then used a php include
<?php include ("footer.html"); ?>
and it then worked but the include
<!--#include virtual="footer.html"-->
for all of the other .html pages did not work.
Do I need to change the extension of all of the .html pages to .php and then use the php include format? Is there a way to get the .html include to work when one of the pages is using .php?
Thanks,