Web Hosting Talk







View Full Version : Help prevent a SSI newbie from break down...


Dani
12-16-2001, 02:46 PM
Hi,

I am desperately trying to implement SSI. It's seems OK when pre-viewing
in DW, but after uploading to the remote server (unix), the file I want
to be attached by SSI doesn't show up in the page(s).

Facts about the set-up:

The pages are applied to a template with a table. The SSI-attached file
is the site menu and it's supposed to go in to one of the table's cells.
The pages (with the SSI-attached menu included) goes into one frame in a
frameset consisting of two frames.

Here's the questions:

1. There's a lot of links in this. The menu (that's SSI'ied into the
page) has about 25 links to other pages plus 5 images. Then the SSI link
itself. How is it about relative, absolute or URL linking? I've heard
that SSI is extremely sensitive to the wrong kind of link. Which am I
supposed to use? (aahh, to make it extra difficult: three of the links
in the menu goes to documents located at other servers, hence with
http:// linking. Plus one link MUST be an URL because it goes to the
cgi-bin)

2. Should I use virtual or file SSI?

3. Any other aspect I don't even know about?

Sorry for long Q. But I think you'd need the background to give an
adequate reply. Thanks in advance

Dan

Matthew_J
12-16-2001, 05:49 PM
Originally posted by Dani
1. There's a lot of links in this. The menu (that's SSI'ied into the
page) has about 25 links to other pages plus 5 images. Then the SSI link
itself. How is it about relative, absolute or URL linking? I've heard
that SSI is extremely sensitive to the wrong kind of link. Which am I
supposed to use? (aahh, to make it extra difficult: three of the links
in the menu goes to documents located at other servers, hence with
http:// linking. Plus one link MUST be an URL because it goes to the
cgi-bin)

All your links should be absolute

2. Should I use virtual or file SSI?

Virtual works the best.

Hope that helps!

Dani
12-16-2001, 06:04 PM
Hi Matthew,

Thanks f reply.
Just to clarify:

1.Absolute links meaning from servers root, like e.g. /client/web/w/user/directory/, right?

2. But the virtual link to the SSI'ied documentitself, should that one be absolute, too?

Sorry to be a pan in the ***, but I've been at this for three days now....

Dan

Matthew_J
12-17-2001, 07:00 PM
For this SSI you would use this:

<!--#include virtual="../watever/file.html"-->

For this links you would use links like http://www.yourdomian.com/folder/file.html

Hope that helps!

Dani
12-18-2001, 02:58 AM
Hi Matthew,

Sorry to be such a bonehead, but I've tried every possible combination and it still doesn't work. I'm beginning to think that the host need to do something with the server to make it work. I mailed them four days ago about this, but they aren't the quickest guys on earth.....

So, the SSI link should be RELATIVE (<!--#include virtual="../watever/file.html"-->)

And the links in the SSI'ed menu should be URL's.

None should actually be absolute, then..... Well, as I wrote, I have tried every combination, including this. So, I'll have to wait to hear from the support anyway. (sigh....)

Thanks

Dan

Matthew_J
12-18-2001, 05:58 PM
Also all your SSI files should be named whatever.shtml not whatever.html

Matthew_J
12-18-2001, 06:00 PM
Edit.

Dani
12-19-2001, 12:47 PM
People!

For five days and numerous mails, the support staff at the host had me believe that they had their server configured for SSI.
Today, I finally made a simple test, and it turned out that it was not. Five consecutive days out the drain, and I installed the little .htaccess script that made it work myself.

So, with a few minor adjustments, everything is working like charm.

Thanks everybody for your input. As I began doubting my sanity, and I think a few of you did, too.

D