try this:
map.connect "*anything" , :controller => "application" ,
:action =>
"error_page"
On 5/25/07, Riquelme <guxing203-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
>
> 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.
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---