ASP.NET MVC not serving default document

后端 未结 6 959
北恋
北恋 2020-12-29 06:07

I have an ASP.NET MVC application where the default page should be index.html which is an actual file on disk.

I can browse to the file using www.mydomain.com/index.

6条回答
  •  温柔的废话
    2020-12-29 06:51

    You could ignore the route in your MVC application and let IIS serve it.

    routes.IgnoreRoute("index.html")
    etc
    

提交回复
热议问题