We recently decommisioned one of our applications after it was replaced with a shiny new one with a new hostname. In order to make the transistion seamless for past users, we needed a way to redirect all traffic to the new URL.
Rails makes this quite easy to do.
class ApplicationController
before_filter :redirect_all_requests