Redirect_to response code?


#1

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.


#2

Before you do redirect_to set ‘Status’ header like so

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

Kent.