I'm trying to handle invalid URL parameters.
Basically, if the user enters the address as "mydomain.com/nonexistentpath" or anything else after "mydomain.com/" that is invalid (currently I check for one parameter) I want it to be ignored and url set to default "mydomain.com"
Any ideas how to do that and where to put validator? I'm working on ASP.NET MVC5 website.