Redirect_to response code?

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.

Before you do redirect_to set ‘Status’ header like so

@headers[“Status”] = “301 Moved Permanently”

Kent.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs