我可以像这样使用ASP.NET MVC URL,但不能从Global.asax重定向到它吗?
http://test.com/product/versions/0.9/Setup.exe本例中的产品是Controller和/versions/0.9/Setup.exe just a /folder/folder/Setup.exe吗
它应该如何在我的控制器中?不采取行动..。或?
发布于 2011-03-25 18:20:08
您可以忽略特定分机的路由:Make routing ignore requests for a file extension
如下所示:
routes.IgnoreRoute("{*setupfiles}", new {setupfiles=@"(.*/)?.exe(/.*)?"});https://stackoverflow.com/questions/5430986
复制相似问题