httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Ghent <da...@elemental.org>
Subject Re: over-aggressive redirection in mod_dir
Date Tue, 27 Feb 2001 16:07:36 GMT
On Tue, 27 Feb 2001, Rodent of Unusual Size wrote:

| So let mod_dir treat them as equivalent if the envariable
| "no-collection-redirect" is set, otherwise continue in the
| current, technically correct, behaviour.

Your description of the problem is fair.

On a curious whim, I went a took a look at how other servers handle this
(ie, is /foo and /foo/ the same or are we redirected?):

----------------------------------------------
Zeus redirects you with a 301:

[daleg@stardiver]~>telnet support.digex.net 80
Trying 205.197.247.39...
Connected to support.digex.net (205.197.247.39).
Escape character is '^]'.
GET /cst HTTP/1.0

HTTP/1.1 301 Moved Permanently
Server: Zeus/3.1
Date: Tue, 27 Feb 2001 16:00:51 GMT
Connection: close
Content-Type: text/html
Location: http://support.digex.net/cst/

---------------------------------------------
IIS redirects using a 302:

[daleg@stardiver]~>telnet www.digex.com 80
Trying 164.109.42.100...
Connected to www.digex.com (164.109.42.100).
Escape character is '^]'.
GET /leverage HTTP/1.1
Host: www.digex.com

HTTP/1.1 302 Object Moved
Location: http://www.digex.com/leverage/
Server: Microsoft-IIS/5.0
Content-Type: text/html
Content-Length: 153

---------------------------------------------
Netscape 3.x redirects with a 302:

[daleg@stardiver]~>telnet www.kraftfoods.com 80
Trying 164.109.67.183...
Connected to kraftfoods.com (164.109.67.183).
Escape character is '^]'.
GET /templates HTTP/1.1
Host: www.kraftfoods.com

HTTP/1.1 302 Moved Temporarily
Server: Netscape-Enterprise/3.6 SP2
Date: Tue, 27 Feb 2001 16:06:16 GMT
Location: http://www.kraftfoods.com/templates/
Content-length: 0
Content-type: text/html

/dale


Mime
View raw message