--- "Randal L. Schwartz" <[EMAIL PROTECTED]>
wrote:
> >>>>> "Jonas" == Jonas Liljegren
> <[EMAIL PROTECTED]> writes:
>
> Jonas> I resolved this by redirecting requests from
> /ga to /ga/ if the target
> Jonas> is discovered to be a directory.
Thanks....this worked.
> Yup. Absolutely necessary. In fact, you don't have
> to do the
> redirecting yourself if your handler just declines
> it....
> something like:
>
> sub handler {
> my $r = shift;
> return DECLINED
> if $r->content_type eq DIR_MAGIC_TYPE and
> not $r->uri =~ m{/\z};
> ...
> }
I tried this, but I must be doing something wrong,as
$r->content_type is always 'text/html', never
DIR_MAGIC_TYPE. I did a search in the mod_perl guide,
but didn't see any mention of DIR_MAGIC_TYPE.
I did a google search and saw your column
http://www.stonehenge.com/merlyn/WebTechniques/col41.html
and I don't see what I'm doing different.
I'm a trailing slash biggot myself, that's why I
didn't discover this myself. The designers are the
ones complaining....:)
Thanks all for the help!
__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/