SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
-
Aug 13, 2000, 09:01 #1
- Join Date
- Dec 1999
- Location
- Highlands Ranch, CO
- Posts
- 193
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ok, I am using a virtual include on all of my pages. I can't remember if there is a way to put links in this included file, with-out hard coding the whole URL.
For example you are at: www.yoursite.com (the left column 'SSI' contains links to www.yoursite.com/folder/news/other.htm & www.yoursite.com/other/news.htm)....
Is there a way to get to the root directory from anywhere in the site? It will be something similar to: ../
I want it so that if I am at www.yoursite.com/folder1/folder2/folder3/folder4/folder5/index.htm then I can still use the same links in the SSI column.
Does this make sense? Please help me out.
Thanks,
Chad
-
Aug 13, 2000, 09:16 #2
- Join Date
- Mar 2000
- Location
- Muskegon, MI
- Posts
- 2,328
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
This might be better suited to the programming discussion forum, Perl JavaScript...
------------------
IMHO,
Westmich
***********************
Your opportunity on the web is now!
westmichiganweb.com
-
Aug 13, 2000, 12:05 #3
- Join Date
- Jun 2000
- Location
- Netherlands
- Posts
- 1,356
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
There is 1 way: start every link in the include with /
/dir1/page.shtml
This will make the browser start looking at the root directory, so it should work.
------------------
Elledan Dunedain
http://emudreams.tsx.org
TriAxis (Still Alpha!)
Everyone has a destiny in life. Some just never reach it
-
Aug 14, 2000, 08:00 #4
- Join Date
- Dec 1999
- Location
- Highlands Ranch, CO
- Posts
- 193
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Elledan,
I knew there was a way! Thanks!
Chad
Bookmarks