网站批量查询,网上推广平台哪个好,陕西城乡建设厅网站,到那里找做网站的兼职我正在使用IIS 6.我想我的问题是我不知道如何使用routes.MapRoute路由到一个非控制器.我有一个url,如example.com,我希望它为index.htm页面提供服务,而不是使用MVC.我该如何设定#xff1f;在IIS中,我将index.htm作为我的起始文档,我的global.asax具有标准的“默认”路由,其中…我正在使用IIS 6.我想我的问题是我不知道如何使用routes.MapRoute路由到一个非控制器.我有一个url,如example.com,我希望它为index.htm页面提供服务,而不是使用MVC.我该如何设定在IIS中,我将index.htm作为我的起始文档,我的global.asax具有标准的“默认”路由,其中它调用Home / Index.public static void RegisterRoutes(RouteCollection routes){routes.IgnoreRoute({resource}.axd/{*pathInfo});routes.MapRoute(Default, // Route name{controller}/{action}/{id}, // URL with parametersnew { controller Home, action Index, id } // Parameter defaults);}我补充说protected void Application_BeginRequest(object sender, EventArgs e){if (Context.Request.FilePath /) Context.RewritePath(index.htm);}有用.但这是最好的解决方案吗