[Catalyst] url rewrite for HTTP mode?

Zbigniew Lukasiak zzbbyy at gmail.com
Sat Nov 5 14:11:33 CET 2005


Hi,

Look at the "[Catalyst] Branding - or path prefix" discussion thread
on this list:
http://lists.rawmode.org/pipermail/catalyst/2005-August/thread.html#1078
and
http://lists.rawmode.org/pipermail/catalyst/2005-August/thread.html#1087

-- Zbyszek

On 11/5/05, Chunzi <chunzi at perlchina.org> wrote:
>
> url such as:
>
> /book/somebook1/en/
> /book/somebook1/zh/
> /book/somebook2/de/
>
> all relate to C::Book's view action using Regex attribute, but everytime, we write the exactly Regex and forward to
> another action to parse snippets to get the book's keyname and language code for later using.
>
> I hope there is a Plugn to work like Apache's mod_rewrite, to make some url rewrite.
>
> even some domains like
>
> http://yourname.chunzi.org/action/here
>
> would turned tobe
>
> http://www.chunzi.org/~yourname/action/here
>
> and then some plugin rewrite the url above to orignal url /action/here, and dump the "yourname" to user object into something like $c->stash->{'user'} 。
>
> or maybe the feature could be support in core Catalyst. any ideas?
>
>
>
>
>
> Chunzi
>         chunzi at perlchina.org
> 2005-11-05
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>
>
>


More information about the Catalyst mailing list