Click to See Complete Forum and Search --> : relative url


cofactor
03-07-2005, 12:11 AM
why relative url not working ?

href="./hbase/quantum/qangm.html#qangm"


what is the syntax for relative url used in html ?

rhsunderground
03-07-2005, 12:15 AM
try getting rid of that period at the beginning of the address.

Wart_Hog
03-07-2005, 04:04 AM
gotgenes,

I will try to illustrate:

If this url is being used in a file called "index.html" and
index.html is in the same directory as "hbase",
then the relative url is: href="hbase/quantum/qangm.html#qangm"

If index.html is one directory below "hbase":
(illustration of directory)
"hbase"
"fake_folder_1"
-->index.html
-->links.html
-->about.html
(end illustration)
then the relative url is: href="../hbase/quantum/qangm.html#qangm"

Hope this helped,
-Mike

See also: http://www.webdeveloper.com/forum/showthread.php?s=&threadid=58681

rhsunderground
03-07-2005, 09:26 AM
another good resource is http://www.iusmentis.com/technology/www/relativeurls/