Forum Moderators: phranque

Message Too Old, No Replies

SSI using Absolute URLs

SSI on Apache

         

lindeom

5:26 pm on Apr 3, 2008 (gmt 0)

10+ Year Member



Hi there. This is my 1st post here, so please don't shoot me if I'm in the wrong place. I did my best to read the charters and everything and this seems like the place I need to post.

That said, I am hosting a bunch of mini websites on an apache server and I finally got the SSI to work, using the htaccess, htmlf extensions (.shtml did not work here) and what not. The problem is I need to use an include file that is outside of the folder structure that my web pages are on. You see, the include paths work fine as long as they are within the folder structure:

(ex. <!--#include file="incs/agentinfo.htmlf"--> )

however, it doesn't work when i do this:

( <!--#include file="../agents/049/agentinfo.htmlf"--> )

OR even when i absolute link to the include file using [.........]

is there a different way to code this? or do i need to "turn on" something on my server or upload another file like an htaccess, etc?

oh and this is the doctype i'm using (w/o space of course):
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >

i also tried this one but no luck:
< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" >

lindeom

5:33 pm on Apr 3, 2008 (gmt 0)

10+ Year Member



would't you know it? as soon as i post this (believe me after hours of research) i just found my own answer:

i needed to change the

include file

to

include virtual

sorry to waste any body's time!

jdMorgan

4:07 am on Apr 4, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



... happens to everyone.

Glad you found the answer... Cheers!

Jim