W3C home > Mailing lists > Public > uri@w3.org > September 2003

Re: URI reference to a directory (what do you want to do?)

From: Daniel R. Tobias <dan@tobias.name>
Date: Sun, 31 Aug 2003 13:39:23 -0400
Message-Id: <4.2.0.58.J.20030831133916.04f6b250@localhost>
To: uri@w3.org




On 31 Aug 2003 at 11:22, Al Gilman wrote:

 > The file or directory that you want is probably correctly identified
 > by the URI
 >
 >    file:///e:/h

If it's actually a directory, most likely the correct URI is

file:///e:/h/

with the trailing slash at the end.  People get really sloppy about
leaving out the trailing slash of directory URIs because most Web
servers are "nice" about it and redirect the slashless forms to the
version with the slash, but in fact the use of the wrong form can
produce serious mistakes in interpreting relative URIs, as seen here.

--
== Dan ==
Dan's Mail Format Site: http://mailformat.dan.info/
Dan's Web Tips: http://webtips.dan.info/
Dan's Domain Site: http://domains.dan.info/
Received on Monday, 1 September 2003 09:44:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:06 UTC