SSI problems, SSI not working correctly |
SSI problems, SSI not working correctly |
stumpydave |
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. |
Frederiek |
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.
Anyway, see The FAQ entry: How do I include one file in another? |
STUDIO309 |
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 |
pandy |
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. |
stumpydave |
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 |
Lo-Fi Version | Time is now: 25th April 2024 - 09:31 PM |