View Full Version : linking directories


fruitcake
03-10-2003, 06:42 PM
I know the '../' code to go back one directory, isn't there one to go back the the root directory?
I'm using a separate file [ my navigation ] in my root directory, and I link it in in several of my secondary directories.
My links are like so:
<a href="../one/file.htm">
<a href="../two/file.htm">
<a href="../three/file.htm"> etc..

now my navigation works fine when you're in one of those secondary folders, but I added a folder like this:
<a href="../four/one/file.htm">
and my navigation no longer works.

So what I wanted to know was can I change the '../' to something so that it just links back to the root directory all the time, then follows the link from there?

I hope I made some sence.
Thanks a bunch!
-Laura

epolady
03-10-2003, 06:49 PM
/ will go back to the root

ie.

<a href="/">blah</a> will lead to http://www.yourdomain.com

doiz
03-10-2003, 06:56 PM
or you can just use http://yourdomain.com/four/one/whatever.htm

fruitcake
03-10-2003, 06:56 PM
Thanks!