Web Hosting Talk







View Full Version : SSI Include Problem


RMF
04-20-2004, 06:34 PM
I'm having some problems with SSI, and its starting to drive me nuts :)

I can't seem to get SSI to include files "into" files that are in sub directories.

Example that works:
Say I have "example.com/index.shtml" and I want "example.com/ads.shtml" pulled into the file, I simply put the following command and it works.
<!--#include file="ads.shtml" -->

Example that doesn't work:
Say I have "example.com/abc/index.shtml" and I want "example.com/ads.shtml" pulled into the file, I put the following command, but it doesn't work.
<!--#include file="../ads.shtml" -->

Any idea whats going on or what I'm doing wrong?

RMF

RMF
04-20-2004, 06:50 PM
Nevermind, seems I figured it out.. At least I think I did.

For those of you who might also have the same problem, I did this.

<!--#include virtual="/ads.shtml" -->

RMF