Forum Moderators: coopster
We have added SSI to the apache server as a parsable extension, and that is what made the nested SSI's work on the html pages, but it still will not work on the php pages like our index.php page. Thanks
On the index.php this is the call to top.ssi.
<? include 'SiteIncludes/new/top.ssi';?>
Within top.ssi there is an additional call to
<!--#include virtual="/SiteIncludes/new/topnav.ssi" -->
which fails. It works fine on the regular html pages when we call <!--#include virtual="/SiteIncludes/new/top.ssi" --> and then <!--#include virtual="/SiteIncludes/new/topnav.ssi" --> from within top.ssi.
I think the problem is that php is not recursive in what it is doing, and I was wondering if there was a way to make the server, I guess in a way, parse over the php twice so that it sees the second call from within top.ssi
DefaultType application/x-httpd-php ForceType application/x-httpd-php will cause all files to be run through the PHP engine (slight performance hit), regardless of their extension.
Or maybe add
.php to your AddHandler server-parsed .ssi configuration entry to help the server-parsing engine find your embedded reference? I don't know if the two (server-parsed and ForceType) will clash, but I suspect not. Has anyone had any problems running pages through multiple engines? I haven't ... yet. ;)