routs question

I would like to redirect a user to the index page if they type in a
page that does not exist on my site. How do I go about that?

Sam Ginko wrote:

I would like to redirect a user to the index page if they type in a
page that does not exist on my site. How do I go about that?

The following as your last route, will catch any other requests that don't match any other routes.

map.blanket_route '*path', :controller => 'whatever', :action => 'some_action'

Hope that helps.

Darrik