Forum Moderators: open

Message Too Old, No Replies

Directory URLs and fragment identifiers

Must index.html be included?

         

rjohara

3:50 am on Dec 14, 2002 (gmt 0)

10+ Year Member



To simplify URLs for human users I try to list them in directory form when possible: foo.org/news/

Sometimes I want to use a fragment identifier like #news-2002-12-13 to point to a specific item. In such a case, I am guessing that I have to include the full path, which gets very long:

foo.org/news/index.html/#news-2002-12-13

I tried to find something in the W3C specs that would say whether a fragment identifier could be used directly with the directory URL (news/#news-2002-12-13) and could find nothing. (They probably figured no one would be dumb enough to try it.) :) Am I correct in assuming it just can't be done that way? I did test it with Mozilla and it didn't work.

pageoneresults

6:41 am on Dec 14, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



rjohara, I think you can use a relative URI...

Relative URIs [w3.org]

../../index.html/#news-2002-12-13

P.S. I'd rather have the full path for many reasons! ;)