David Binger wrote: > On Aug 10, 2005, at 1:20 PM, mso@oz.net wrote: > >> >> I'll just plug my longstanding request that Quixote redirect path >> '' (the >> mount point itself) to '/'. That's no more magical than adding a >> slash >> redirect to a directory, which Quixote and all other webservers do. >> It's >> the only reasonable interpretation of '' ("Duh, they must be trying >> to get >> to the home page.") Otherwise everybody has to put a redirect in >> their >> Apache config. > > I don't think Quixote can really know what the mount point is unless > it is > told with the SCRIPT_NAME. If I understand your request, it would > be to to traverse SCRIPT_NAME if PATH_INFO is empty. No need to backtrack into SCRIPT_NAME. I meant the home page of this Quixote application, not the server's document root. path = request.get_environ('PATH_INFO', '') if not path: return quixote.redirect('/') That way if I go to http://example.com/app it'll redirect to http://example.com/app/ . Same for http://example.com -> http://example.com/ . The problem isn't a stupid server, it's users typing URLs without a trailing slash. This is not related to moving stuff from SCRIPT_NAME to PATH_INFO if PATH_INFO wasn't set correctly. I assume that's already been done by this point. -- -- Mike Orr