Rails Permanent Redirects
I feel silly writing something so short and simple, but horribly outdated information when googling ‘rails permanent redirect’ drove me to it. I’m just hoping the SEO gods smile upon me.
So, my friends, check it:
redirect_to "http://somewhere.com", :status => 301 redirect_to posts_url, :status => :moved_permanently