[Catalyst] Local action in controller not mapping to template (retry): Solved

Daniel Hulme st at istic.org
Tue Apr 21 07:48:46 GMT 2009


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.

-- 
Sequential composition: it's just one thing after another.
http://surreal.istic.org/                         How's it going to end?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090421/83cdc2da/attachment.pgp


More information about the Catalyst mailing list