40% off your First Order with GoDaddy.com!

Nov 29, 2009

Rails: 301 Redirects

A 301 redirect is a permanent redirect, which tells the search engines to index the redirected to URL rather than the current URL.

You can use this when migrating from legacy content management systems, or to make sure that you only have 1 URL per page.

With the folloing code in your controller, Rails makes it easy:

No comments:

Post a Comment