Best solution I’ve found is to use a catchall route glob at the end of my routes and use that method to test for certain conditions, like this…
map.with_options :controller => “application” do |m|
map.index “/”, :action => “index”
map.page “/:url”, :action => “page”
map.catcher “/*whatever”, :action => “catcher”
index and page as normal
Test params[:whatever] for what you might want to redirect specifically
Remember it’s an Array though.
if params[:whatever] == “whatever”
# Something else…
Hope that helps.