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 <[email protected]> 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: [email protected]
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/[email protected]/
> Dev site: http://dev.catalyst.perl.org/
>

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to