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

后端 未结 7 648
心在旅途
心在旅途 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:51

    Either create your own route class, or use this regex route implementation: http://blog.sb2.fr/post/2009/01/03/Regular-Expression-MapRoute-With-ASPNET-MVC.aspx

    0 讨论(0)
提交回复
热议问题