如何路由此目录:
mywebsite/Views/Reports/Page.aspx
到这个目录?
mywebsite/Reports/Page.aspx
该页面必须是通配符,因此如下所示:
mywebsite/Views/Reports/*
对于这样的事情:
mywebsite/Reports/*
这是我得到的:
routes.MapRoute(
name: "Reports",
url: "Views/Reports/*",
defaults: new { controller = "Reports"}
);