Forum Moderators: coopster & phranque

Message Too Old, No Replies

SSI and absolute paths?

         

toolman

6:45 pm on Jun 21, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is there a way to use absolute paths or urls in a file include? I am setting up a subdomain and it's a virtual site mapped on the server to a subdirectory of the main site. Needless to say you can see what I mean about needing an absolute way to include from a main file across all the subdomains.

Brett_Tabke

8:21 pm on Jun 21, 2001 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Not that I know of. The only part that I know of that is not correct in the ssi docs, is that you can use relative paths with the virtual form of the include.

#include virtual="../cgi-bin/discussion.cgi?forum=13&discussion=490"

[httpd.apache.org...]
[httpd.apache.org...]

Other than that, I don't think anything else would work.

sugarkane

9:12 pm on Aug 7, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It might be worth trying to use a symbolic link. From the command line:

ln -s /serverpath/to/maindir /serverpath/to/subdomain/alias

If your host allows you to do this, the 'alias' directory in your subdomain will be mapped to 'maindir' in the main domain.