[thelist] multiple ssi in one page

pandy pandion at gmx.net
Tue Mar 1 21:44:52 CST 2005


  ww wrote:
>here is the code i used for inserting the ssi files....i have tried using 
>complete paths (http://path.to.ssi.file) and also (../ssi.file)
>
><!--#include file="../menu/main.txt" -->

...and there you have it!

"The value is a path relative to the directory containing the current 
document being parsed. It cannot contain ../, nor can it be an absolute 
path. Therefore, you cannot include files that are outside of the document 
root, or above the current document in the directory structure. The virtual 
attribute should always be used in preference to this one."
http://httpd.apache.org/docs/mod/mod_include.html

Try this instead.
<!--#include virtual="/path/from/root/file.inc" -->

pandy





More information about the thelist mailing list