[Catalyst] Local action in controller not mapping to template
(retry): Solved
Anne Brown
lovallama at gmail.com
Tue Apr 21 11:42:07 GMT 2009
Daniel Hulme-4 wrote:
>
> On Mon, Apr 20, 2009 at 08:20:42AM -0700, Anne Brown wrote:
>> As you suggested, I checked the vhosts file and sure enough, the problem
>> was
>> with the RewriteRule. I changed this:
>> RewriteRule ^([A-Za-z0-9-]+)?$ index.pl/$1
>> to this:
>> RewriteRule ^([A-Za-z0-9-/]+)?$ index.pl/$1
>> and problem solved.
>
> Problem solved, that is, until you try to access an URL with a _ in it,
> or with %-encoded characters, or a ~, all of which are common. I'm not
> sure what you're trying to exclude from that RewriteRule, but .* seems
> like the obvious regex to use.
>
Daniel,
I tried that before but I must be doing something wrong. This rule:
RewriteRule ^(.*)?$ index.pl/$1
results in a bunch of errors like this:
[TS] [error] [client 127.0.0.1] Request exceeded the limit of 10
internal redirects due to...
[TS] [debug] core.c(3046): [client 127.0.0.1] r->uri =
/index.pl/index.pl/index.pl/index.pl/index.pl/index.pl/
[TS] [debug] core.c(3052): [client 127.0.0.1] redirected from r->uri =
/index.pl/index.pl/index.pl/index.pl/index.pl/index.pl/index.pl/index.pl/index.pl/
[TS] [debug] core.c(3052): [client 127.0.0.1] redirected from r->uri =
/index.pl/index.pl/index.pl/index.pl/index.pl/index.pl/index.pl/index.pl/
[TS] ....
Anne
--
View this message in context: http://www.nabble.com/Local-action-in-controller-not-mapping-to-template-%28retry%29-tp23123769p23154299.html
Sent from the Catalyst Web Framework mailing list archive at Nabble.com.
More information about the Catalyst
mailing list