The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> SSI problems, SSI not working correctly
stumpydave
post Nov 30 2008, 09:12 AM
Post #1





Group: Members
Posts: 2
Joined: 30-November 08
Member No.: 7,227



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Nov 30 2008, 01:01 PM
Post #2


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



I've never heard of a file extension .ssi. blink.gif

Anyway, see The FAQ entry: How do I include one file in another?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
STUDIO309
post Nov 30 2008, 01:24 PM
Post #3





Group: Members
Posts: 5
Joined: 11-November 08
Member No.: 7,088



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.

This post has been edited by STUDIO309: Nov 30 2008, 01:25 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Dec 1 2008, 11:13 PM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
stumpydave
post Aug 5 2009, 08:44 AM
Post #5





Group: Members
Posts: 2
Joined: 30-November 08
Member No.: 7,227



A bit late I know but thanks for the responses. the include virtual was the solution!

Cheers
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th April 2024 - 09:31 PM