* Eric Sammer <[EMAIL PROTECTED]> [2002-12-04 23:43]:
> All:

Hello!

[--  snip mod_perl talk --]

> All of this brings up an extremely stupid problem - the trailing slash 
> in the url. Due to the specification of the Location directives and the 
> (potential) use of path_info() for self contained sections (multipage 
> forms, sections that do use path_info() for dispatch style design, 
> etc.), I'm forced to specify my "modules" as www.site.com/login/

If you are dealing with files being handled by a handler, you can do
something like:

  use Apache::Constants qw(:types);

  sub handler {
      my $r = shift;
      return DECLINED if $r->content_type eq DIR_MAGIC_TYPE;

to decline handling directories in your handler.  (You might need to
tweak that a little).  This means that mod_dir will get a crack at it,
and rewrite it to index.html or whatever, and then let your handler
handle with rewritten request.

(darren)
 
-- 
The first rule of magic is simple.  Don't waste your time waving your
hands and hoping when a rock or a club will do.
    -- McCloctnik the Lucid

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.ourshack.com/mailman/listinfo/templates

Reply via email to