[Zope-dev] ZServer should redirect for folder objects?

Dieter Maurer dieter@handshake.de
Wed, 25 Jul 2001 21:28:25 +0200 (CEST)


John Lim writes:
 > I've been doing some work with Zope and I've noticed strange behavior with 
 > regards to ZServer and relative links.
 > 
 > When a client requests an object that is a folder and the request URL does 
 > not have a trailing slash, the HTTP server should return an HTTP 301 
 > Redirect to the correct URL with the slash, right?
Hmm?

Apache may do this, but I did not see a clause in the HTTP spec
that would require this behaviour.

Zope does not do it, but sets a "base" tag.
This is another approach, good for Zope but difficult for
Apache...
Usually, this allows to correctly resolve relative links.
But the magic only works, if your "index_html" has
a "head" tag.


Dieter