Help - Search - Members - Calendar
Full Version: SSI problems
HTMLHelp Forums > Web Authoring > Web Site Functionality
stumpydave
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
I've never heard of a file extension .ssi. blink.gif

Anyway, see The FAQ entry: How do I include one file in another?
STUDIO309
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
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.html

I didn't think that using a full URL as in your examples would work at all. unsure.gif
stumpydave
A bit late I know but thanks for the responses. the include virtual was the solution!

Cheers
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.