A problem with the routes

In many case,the non-standard url will cause the RouteError,and the
page will show 400.html.
but in my recently project,I don’t want this be caused,it’s take the
system resources,and the log file turn big very fast.
the spider always use ‘XXXX/user.asp’ to cache my page.
how can I do to write a regexp to redirect this request to a page such
as ‘error.html’,and will not case the RouteError.

sorry for my poor english…hehe.

try this:

map.connect “*anything” , :controller => “application” , :action =>