Re: mod_perl vs. mod_rewrite precedence?

Vincent Veyron <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
E R wrote:
> It seems that if there is a mod_perl handler installed at a location,
> a mod_rewrite rule rewriting that location to another doesn't have any
> effect.
>   
I noticed that with mod_dir in Apache2 : it won't redirect for 'trailing 
slash' if a handler is configured for that location.

I add the redirection code to the handler myself :

    if ( $r->uri =~ /\/$/ ) {

        my $location = $r->uri . 'index.html' ;

        $r->headers_out->set(Location => $location);

        return Apache2::Const::REDIRECT;

    }



-- 

Vincent Veyron
Logiciel de suivi et de gestion des dossiers de contentieux et d'assurance pour les services juridiques 
http://marica.fr/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.