ASP.NET MVC路由被忽略。

时间:2015-09-09 16:29:12

标签: asp.net asp.net-mvc

我有一条路由配置为捕获匹配/职业/ *的所有网址。使用的代码如下:

routes.MapRoute("CareersRedirect", "careers/{*path}", new { controller = RedirectPermanent", action = "Index", RedirectPermanentController = "Home", redirectPermanentAction = "Index" }, namespaces);

据我所知,我认为上面的代码没有问题,但是如果我浏览/职业/任何东西,路线被忽略,我得到404.

我唯一能看到的不同是,职业目录实际上是在IIS中配置为应用程序的。这会与被忽略的路线有什么关系吗?

谢谢大卫

0 个答案:

没有答案
相关问题