On Wed, 2006-09-20 at 08:12 -0700, Dave Viner wrote:
> Hi,
>
> I'm trying to set a special Perl handler for the "homepage" or index
> page of a site. A directive like:
>
>
> SetHandler perl-script
> PerlResponseHandler Cool::Handler
>

>
> causes all requests to be served by Cool::Handler. However, I want
> only requests that match ^/$ to be served in that manner. One hacky
> way I found to use mod_rewrite like is this:
>
>
> SetHandler perl-script
> PerlResponseHandler Cool::Handler
>

> RewriteRule ^/index.html /index [R=301]
>
> But, I think there must be a better way. What's the best way for me
> to specify a handler which matches the "/" request?



Try this:


Clint