TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Subject:Re: two URLs point to same file From:Stan Brown <stbrown -at- NACS -dot- NET> Date:Sun, 24 Mar 1996 23:00:29 -0500
Tim Altom <taltom -at- IQUEST -dot- NET> wrote:
>http://stc.org/region2/phi/n%26v/soft0196.html.
and Emily M. Skarzenski <eskarzenski -at- dttus -dot- com> replied:
> The URL above is incorrect. The correct
> URL is http://stc.org/region2/phi/n&v/soft0196.html.
and Tim surreplied:
>Nevertheless, I checked the two URLs, and found that BOTH of them work. It's
>the first time in my surfing that I've ever seen this happen. Domain names
>versus URLs, yes, but they're just restatements of the same thing. This is
>obviously going into a different directory, yet it's the exact same HTML
>document, so far as I can tell. So if you're searching for the review, use
>either one.
So much for plain text. But what about special characters in a URL?
For instance, if > or " is part of a file name (bad practice, but
possible), the browser may think that character is a delimiter after
the URL rather than part of the URL. Within URLs, special characters
are shown in hex with a leading percent sign. Thus > and " would be
%3E and %22, respectively. (The percent sign itself is %25.)
Those of you who haven't nodded off yet may have noticed that the
"entity names" I listed two paragraphs ago all begin with an
ampersand. This leads to the question whether an ampersand might
sometimes confuse a browser. To guard against this, in a URL the
ampersand character itself can be represented by its hex
representation, %26. (Emily, I think I said "should" in private mail
to you; "can" is a better verb.)
So the answer is that the two URLs are not different: they are the
same, just represented slightly differently. Whoever chose to have a
directory name including the character & made a poor choice, as this
confusion shows.
One final note: it's not "domain names versus URLs": the URL is the whole
specification and includes _either_ a numeric IP address _or_
something alphabetic that may be called a domain name. Either one is a
component of a URL.
Stan Brown, Oak Road Systems, Cleveland, Ohio USA +1 216 371-0043
email: stbrown -at- nacs -dot- net Web: http://www.nacs.net/~stbrown/
Can't find FAQ lists? See my Web page for instructions, or email me.