Before you do redirect_to set ''Status'' header like so
@headers["Status"] = "301 Moved Permanently"
Kent.
On 2/2/06, Onur Turgay <onurturgay@gmail.com>
wrote:> hi,
> I wanted to make some redirects from my old page urls to my new ones.
> In order to make google see the pages have moved permanently, I have
> to send a 301 moved permanently code to google. when I use redirect_to
> it sends a 302 moved temp. code. Can I change this behaviour?
> Thanks in advance.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>