I have a bunch of expired content at URLs all ending in .html
from a legacy static HTML site:
example.com/a.html
example.com/b.html
Rather than display a Rails error page that says:
Routing Error
No route matches "/a.html" with {:method=>:get}
I want to reroute all content that ends in .html
to the homepage (the root route):
map.root :controller => 'home', :action => 'index'
Is it possible to do this by only changing the route definition or is it necessary to define a catch-all route?