SSI problems -
07-14-2003
, 04:58 PM
Hello all,
I am setting up a site that will use SSI for the header/left nav/footer. I
have three files for each header.htm, leftNav.htm, and footer.htm. These are
all in a folder in the root called includes.
Then I have my pages reference the includes with this:
<!--#include file="/include/header.htm" -->
This works great in DMX. But when I view it through the browser, I get this:
Error processing SSI file '/include/header.htm'
If I change the include statement to this:
<!--#include file="/Post_Fund_dev/include/header.htm" -->
The include shows when browsed to it, but does not show up when it is in
DMX. I think the problem is how the root is defined in DMX and my local IIS
machine. I have multiple sites set-up in C:\Inetpub\wwwroot\ as virtual
directories. So I would browse to the site with this url
http://localhost/Post_Fund_dev/.
So if I set-up my DMX site's local site to c:\Inetpub\wwwroot\, I will be
fine. But I want to segment my development to each specific virtual
directory. In addition, when I roll this out to production the root will now
be Post_Fund_dev not wwwroot. So if I change all the include statements to
<!--#include file="/Post_Fund_dev/include/header.htm" --> this will work in
my local dev area by browsing, not in DMX and not in production. I would
then have to change the include to <!--#include
file="/include/header.htm" --> for production.
What is the best way around this? Any suggestions would be greatly
appreciated.
--
Thanks,
vc |