PDA

View Full Version : SSI code bit <!--#include file="/myfile.html" -->



dice
June 22nd, 2001, 06:31
Hi Boarders!

I am having loads of trouble getting a few SSI commands to work on my host (Virtual 9 - vr9.com)

Go check out my test site napalmdice.vr9.com (http://napalmdice.vr9.com/) and click on the SSI link.

This is the bit of code I am using...

<!--#include file="/myfile.html" -->

It doesn't seem to work on he server, maybe I am getting te code wrong or maybe the syntax.

:D HELP!!!!!! :D

gyrbo
June 22nd, 2001, 09:02
You shouldn't use absolute paths. Or the server's ones. The way you type it, it goes to the server root. better use ./myfile.html or something. Or even /usr/apache/docs/dice/myfile.html (just an example doesn't work I think)

puDDs
June 22nd, 2001, 10:49
Originally posted by dice
Hi Boarders!

I am having loads of trouble getting a few SSI commands to work on my host (Virtual 9 - vr9.com)

Go check out my test site napalmdice.vr9.com (http://napalmdice.vr9.com/) and click on the SSI link.

This is the bit of code I am using...

<!--#include file="/myfile.html" -->

It doesn't seem to work on he server, maybe I am getting te code wrong or maybe the syntax.

:D HELP!!!!!! :D

Your problem is that you're using an absolute path with the 'include file' function, not a relative one. You'll either have to change it to an absolute path, or, even easier, change your code to this:

<!--#include virtual="/myfile.html"-->

With the virtual command, you can use relative or absolute paths.