ASP.NET MVC to ignore “.html” at the end of all url

后端 未结 7 703
心在旅途
心在旅途 2021-01-04 18:52

I am new to asp.net mvc and now struggling with url routing. I\'m using asp.net mvc 3 RC2.

How can I create a url routing that IGNORES the very end

7条回答
  •  甜味超标
    2021-01-04 19:37

    You could handle this in IIS instead of ASP.NET MVC using IIS Url rewriting. See for example: http://learn.iis.net/page.aspx/496/iis-url-rewriting-and-aspnet-routing/

提交回复
热议问题