Relative URLs are Relative?

B

Bill

I understand that:

<a href="/LINK.ASP"> goes to LINK.ASP from the web root,
<a href="LINK.ASP"> goes to LINK.ASP in the same directory

where does

<a href="../LINK.ASP"> go to? Is it LINK.ASP one directory above?

Is there a spec for relative URLs in a link?

Thanks!
 
J

Jim Buyens

Yes, exactly. The double dot means "up one directory".

As to a spec, try:

http://www.faqs.org/rfcs/rfc1808.html

(which, BTW, I found by typing
? specification relative url
into the IE address bar).

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
B

Bill

Jim Buyens said:
Yes, exactly. The double dot means "up one directory".

As to a spec, try:

http://www.faqs.org/rfcs/rfc1808.html

(which, BTW, I found by typing
? specification relative url
into the IE address bar).

Jim Buyens
Microsoft FrontPage MVP

Thanks, Jim. I had Googled "relative url" & got back nothing useful that
way.

. = <URL:http://a/b/c/>
./ = <URL:http://a/b/c/>
.. = <URL:http://a/b/>
../ = <URL:http://a/b/>
../g = <URL:http://a/b/g>
../.. = <URL:http://a/>
../../ = <URL:http://a/>
../../g = <URL:http://a/g>
 
Top