[Catalyst] C::P::Redirect

Hernan Lopes hernanlopes at gmail.com
Thu Nov 4 02:24:33 GMT 2010


Hey Jon,

In perl catalyst apps you can set a proper response status for your
redirect as simple as:

ie. $c->res->redirect( '/foo/bar.html', 301 );

Read more at:
http://search.cpan.org/~bobtfish/Catalyst-Runtime-5.80029/lib/Catalyst/Response.pm#$res-%3Eredirect%28_$url,_$status_%29


-Hernan

On 11/3/10, Jon <jonfdaily at wetxt.com> wrote:
> Hello,
>
> I'm using C::P::Redirect, which redirect to pages with an HTTP 302
> status code.  Does anyone have an elegant way to set these redirects
> as 301s?
>
> The 302 is *ok*, but I would prefer the 301.
>
> Thanks!
>
> - Jon
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>



More information about the Catalyst mailing list