PDA

View Full Version : Ssi



Tool is God
July 13th, 2001, 18:03
Hi,

I'm using SSI on my site, but I've run into a problem. If someone clicks a link to go to a certain section of my site and that section is in a different folder, then when the person is at that section, the navigation bar has all the links, but they are relative to that directory? Get what I mean?

So instead of it going to http://v-sector.com/~lbc/index.shtml, it goes to http://v-sector.com/~lbc/lyrics/throwingthegame/index.shtml which I don't want...do I need to use this: <!--#include virtual="http://v-sector.com/~lbc/index.shtml"--> or use the include file with the whole URL...

Thanks and tell me if this is too confusing and what parts and I'll try to clear it up.

Wizard designs
July 13th, 2001, 18:37
use

<!--# include file="../file"-->

meow
July 13th, 2001, 19:06
If I understand the problem right you could use URLs that are relative to your root directory in the navigation links. Then they will work the same from anywhere. Just start with slash and write the path from the root.

http://v-sector.com/~lbc/SomeDirectory/SomeFile.html
becomes
/SomeDirectory/SomeFile.html

Tool is God
July 13th, 2001, 19:12
Yeah, that's right, but I just decided I will type in the entire URL including the url of the host I'm using right now...it won't be too bad to go back through abotu 20 links and copy and paste a new web host...eh? thanks for the help though.