I have an application which is configured to use
~/Account/LogOn
in the
web.config
file for the authentication.
I would like to have the URL just point to www.example.com instead of www.example.com/Account/LogOn.
I have tried to have the routing configuration as follows, but it does not work
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Account", action = "LogOn", id = "" }
);
Kindly suggest the right practice that can be used. I tried to remove the loginurl from web.config file but it is not of use and shows authorization error while running.