I'm working on some error handling in my MVC app, and I'd like to change asperrorpath
to something that doesn't give away the fact that I'm using .NET... something like path
Can anyone give me some direction on how to change that out?
Add redirectMode="ResponseRewrite"
to the customErrors section. That worked for me.
my wprk around is using
route.MapRoute("NotFound", "{*url}", new {controller = "Home", action = "NotFound"})
At the bottom most, which I have NotFound
action in HomeController
. It will simply catch all other urls.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With