Eric S. Johansson wrote:

>>   That is the expected behaviour. The directory entry specifies how
>>   its contents should be treated, not the entry itself.
>>
>>   For example, imagine that your CGI replies with a redirection to
>>   "thing.cgi?whatever=1".  In this case the final URL will be:
>>
>>     /akasha/thing.cgi?whatever=1
>>
>>   however, if the server would manage the directory like its content,
>>   as you are proposing, the final URL would be:
>>
>>     /thing.cgi?whatever=1
>
> okay.  I follow that.  doing a few other tests I saw how the rewrite
> is automatically handled if the URL isn't associated with a file but
> instead is associated with the directory.  I assume then that if I
> want to handle the URL without a trailing /and a map to the same URL
> with a trailing / I'm going to need some sort of a rewrite
> statement.

  Yeah, a hidden rewrite rule, otherwise the result would be the
  same.  Something like this should work:

=========
    Request "^/akasha$" {
      Handler redir {
           Rewrite "/akasha/"
         }
    }
=========

  Good luck!

-- 
Greetings, alo.
http://www.alobbs.com
_______________________________________________
Cherokee mailing list
[email protected]
http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee

Reply via email to