我试图做以下事情:
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes){
{
//other stuff
routes.MapRoute(
name: "MyRoute",
url: "test.htm",
defaults: new { controller = "Controller", action = "Test" });
}
}
但是 IIS 在尝试检索example.com/test.htm
.
我怎样才能得到想要的效果?