Re: Does <A HREF hyperlink require "http://..."?
- From: "Alan J. Flavell" <flavell@xxxxxxxxxxxxxxxxx>
- Date: Thu, 5 Jan 2006 18:06:45 +0000
On Thu, 5 Jan 2006, Harlan Messinger wrote:
> On the other hand, IIS sends a redirect response when a directory is requested
> without a trailing slash:
>
> Client: give me http://www.example.com/xyz/abc
> IIS: ask for http://www.example.com/xyz/abc/ instead.
I can't recall a web server which doesn't do that, by default.
Pedants (such as DJ Delorie, who at one time had an explicit
demonstration on his web site in order to "make a point") have
to go to extra trouble if they want to disable that behaviour.
Apache is perfectly capable of being configured to return two
different valid resources in response to the two distinct URLs
http://www.example.com/xyz/abc and http://www.example.com/xyz/abc/ ,
but you have to work at it, it isn't something that happens by
accident. The default behaviour is the one that you (and most other
people) expect.
> When the client makes the new request, THEN the server will send the
> default file in the abc subdirectory.
Maybe. It depends. I've seen IIS servers which then issue yet
another redirection to default.asp
In fact I recall a Microsoft server which, when asked for the
canonical URL (ending in "hierarchy/"), issued four successive
redirections before it finally got around to returning some content
with a 200 OK status. The final URL was distinctly unmemorable (and
different every time).
.
- Follow-Ups:
- Re: Does <A HREF hyperlink require "http://..."?
- From: Harlan Messinger
- Re: Does <A HREF hyperlink require "http://..."?
- From: Bruce Lewis
- Re: Does <A HREF hyperlink require "http://..."?
- References:
- Does <A HREF hyperlink require "http://..."?
- From: Yeah
- Re: Does <A HREF hyperlink require "http://..."?
- From: Darin McGrew
- Re: Does <A HREF hyperlink require "http://..."?
- From: Bruce Lewis
- Re: Does <A HREF hyperlink require "http://..."?
- From: Eric Lindsay
- Re: Does <A HREF hyperlink require "http://..."?
- From: Rob McAninch
- Re: Does <A HREF hyperlink require "http://..."?
- From: Stan Brown
- Re: Does <A HREF hyperlink require "http://..."?
- From: Harlan Messinger
- Re: Does <A HREF hyperlink require "http://..."?
- From: Alan J. Flavell
- Re: Does <A HREF hyperlink require "http://..."?
- From: Harlan Messinger
- Does <A HREF hyperlink require "http://..."?
- Prev by Date: Re: Does <A HREF hyperlink require "http://..."?
- Next by Date: Re: Does <A HREF hyperlink require "http://..."?
- Previous by thread: Re: Does <A HREF hyperlink require "http://..."?
- Next by thread: Re: Does <A HREF hyperlink require "http://..."?
- Index(es):
Relevant Pages
|