It must be known that asp.net MVC was deployed on the IIS6, and in order for IIS to send requests for asp.net mvc to asp.net processing, the application ISAPI mappings have to be added.
One way to avoid this mapping is to take advantage of existing mappings, such as the mappings of. aspx extensions. But in that case asp.net MVC's URL would be "ugly" and "http://localhost/ASPNETMVCAPP/Account.aspx/Logon/". If you can put the. aspx to the end of the URL above, it will be "good-looking" a lot, "http://localhost/ASPNETMVCAPP/Account/Logon/default.aspx". And it looks more like a traditional WebForm URL.
It is not difficult to achieve such a function. The following settings can be made in Global.asax.cs when the URL route mapping.
This is the URL effect of the implementation:
This is the modification made in the Default.aspx.cs of the application.
The advantage of this is that it looks like a webform has a certain degree of deception, but also keep the url "Beautiful", the URL to the middle of the ASPX page is not real, perhaps more secure. It is also possible to remove ISAPI registrations in IIS6, which is convenient for virtual host users.