Warning: Attempt to assign property of non-object in /home/jonathan/public_html/wp-includes/rss.php on line 440
Rails 301 redirects | ruby on rails blog

Rails 301 redirects

February 7, 2008

No Gravatar

301 redirects are one of the best ways to inform search engines that your URLs have changed. They’re simple to implement, so you should have no reason not to use them.

1
headers["Status"] = "301 Moved Permanently"<br>redirect_to "/"<br>

Done.

close Reblog this comment
blog comments powered by Disqus