PDA

View Full Version : links to directories above the page


julieA
10-26-1999, 04:43 PM
If I want a link to go back up, what would it look like?
The directories are:

www/julies.net/MonroeSuperSite/AreaLinks/index.html

I want the pages in the AreaLinks directories to point back to pages in the MonroeSuperSite directory above it. Do I have to use the full urls?

sincerely,
julieA
------------------
mother of eight, wife of one...


OK-[nbsp][nbsp]"../index.shtm"[nbsp][nbsp]seems to get it up there. Seems my html book does have a few answers. :o
[This message has been edited by julieA (edited 10-26-99)]

Mandi
10-27-1999, 09:57 AM
And maybe you already figured it out - but ../../index.html will take you up two directory layers, and so forth.

Rich
10-28-1999, 11:20 PM
Or, you could use /MonroeSuperSite/whatever.html to make the link relative to the root of the site.

Using ../whatever.html will cause the links to always point to the directory above them, even if you move the files.

Using /path/whatever.html will cause the links to always point to the SAME directory, even if you move the files to some other location within the site.

Which technique to use depends on the objectives for portability you need to achieve.

Rich
[This message has been edited by Rich (edited 10-28-99)]