本帖最后由 zhvlian9 于 2013-07-15 22:28:26 编辑

解决方案 »

  1.   


    {controller}/{action}/{id}.action,
    new { controller = "Home", action = "Index", id = UrlParameter.Optional }
      

  2.   

    映射了,
    routes.Add("IndexRoutes", new DomainRoute(
    "www.XXX.com",
    "{PageIndex}/", //这里改成{PageIndex}.html就不行了
    new { Controller = "Default", action = "Index", PageIndex = 1 },
    new { PageIndex = @"[\d]*" }
    ));
      

  3.   

    路由没有配置好。
    参考:
         routes.MapRoute(
                 "Default3", // 路由名称
                "{controller}/{action}/{id}-.html", // 带有参数的 URL
                 new { action = "Index", id = UrlParameter.Optional },
                 new string[] { "PRO.Controllers" }
                );
      

  4.   

    你得在IIS中把html后缀映射为由.net框架处理程序来处理,象aspx等后缀一样,否则你再怎么改路由也没用,因为IIS不会把这些文件交给你处理。
      

  5.   

    iis无法运行mvc的伪静态路由 解决方案:
    在webconfig里的webserver下添加这句话:<modules runAllManagedModulesForAllRequests="true" />
      

  6.   

    我也碰到了求解决
    我要添加的路由是这样的~~@! routes.MapRoute(
    "d", // 路由名称
    "{controller}/{action}/{ID}.html"
     );
    原来 用VS2010调试的时候是好的 
    现在 换成VS2012后调试就 变成404错误了
    发布以后语文是404错误