stumpydave
Nov 30 2008, 09:12 AM
Anyone who can advise on this little problem:
I use SSI for menus and on the new site I'm putting together it doesn't seem to want to work. I store my SSI files in another directory. However when ever I load up the page I get error processing SSI file displayed. However if I put the SSI file in the same folder as the page it works fine! Checked name, path, speeling, deleted and recreated etc. Just stuck now. for example the following works:
<!--#include file="http://mysite.com/menu.ssi" --> where SSI file is in root directory
this however doesn't:
<!--#include file="http://mysite.com/ssi/menu.ssi" --> where the SSI file resides in SSI folder
Got me stumped. I'm using the same host I normally use and my other site using this method functioned fine.
Frederiek
Nov 30 2008, 01:01 PM
I've never heard of a file extension .ssi.
Anyway, see The FAQ entry:
How do I include one file in another?
STUDIO309
Nov 30 2008, 01:24 PM
Have you tried a direct link, like:
<!--#include file="ssi/menu.ssi" -->
or
<!--#include file="./ssi/menu.ssi" -->
Also, I use .asp format includes on my site. Don't know if the file format would make any difference.
pandy
Dec 1 2008, 11:13 PM
Where is the calling file? Have you tried INCLUDE VIRTUAL rather than INCLUDE FILE?
CODE
<!--#include virtual="/ssi/menu.ssi" -->
http://httpd.apache.org/docs/1.3/mod/mod_include.htmlI didn't think that using a full URL as in your examples would work at all.
stumpydave
Aug 5 2009, 08:44 AM
A bit late I know but thanks for the responses. the include virtual was the solution!
Cheers