I have a site with pages with shtml extension, primarily done to have menu navbar display corrctly with SSI. I now am adding a page with php, and to have this page work properly I have given it a php extension, which causes the menu to no longer display. I also frankly find the shtml extension to be an odd one for most who use my site. I would like to change to php extension for all pages if possible, but how do I reformat my SSI to display properly if I no longer use the shtml extension?
The current code of interest is <!--#include virtual="/Navbar.shtml" -->
It should just be a matter of changing your Server side include code to
<?php require "/Navbar.php" ?>
and renaming
Navbar.shtml
toNavbar.php
Require means that there is an error and the page wont load at all if Navbar.php is missing. You could also use include, which is similar, but will allow the page to load. Read the following manual pages for more info on include and require.
http://www.php.net/manual/en/function.include.php
http://php.net/manual/en/function.require.php
Hope this helps :)