I have a webapplication with the following route.
routes.MapRoute(
name: "Mytest",
url: "Admin/Dashboard/Index",
defaults: new { controller = "Dashboard", action = "Index", ID= "test" }
);
Now when I go using http://localhost:13/Admin/Dashboard/Index it works, but http://localhost:13/Dashboard/Index also working.
But I would like, users can access http://localhost:13/Admin/Dashboard/Index ONLY. I need when users access "http://localhost:13/Dashboard/Index" should returns 404.