[Catalyst] Local action in controller not mapping to template
(retry): Solved
Matt S Trout
dbix-class at trout.me.uk
Tue Apr 21 11:43:24 GMT 2009
On Tue, Apr 21, 2009 at 08:48:46AM +0100, Daniel Hulme 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.
Does somebody want to figure out a good standard one for this and stick
it in the deployment section of cookbook and/or on the wiki?
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
More information about the Catalyst
mailing list