You should be able to redirect with 301 status by adding this to your controller action:
redirect_to "http://host.com/foo/foo_slug", :status => 301
See the API documentation for details redirect_to.
And there should be no problem redirecting the upper-window URL to lower versions, although this can be better handled by something at the HTTP server level, such as Apache mod_rewrite .
source
share