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 G. 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


Darrik Mazey
DarmaSoft, LLC.
1627 Marigold Avenue
Akron, Ohio 44301-2627
office: 330.983.9941
fax: 330.983.9942
mobile: 330.808.2025
[email protected]

To obtain my public key, send an email to
[email protected].