【发布时间】:2015-05-30 02:59:20
【问题描述】:
我有网址:
http://localhost:1714/Message/Index
我想展示:
http://localhost:1714/Message/Index.html
我该怎么做?
【问题讨论】:
-
你可以通过在.htaccess文件iis.net/learn/extensions/url-rewrite-module/…中编写url重写方法来做到这一点
-
为什么要这样做? MVC 路由映射的整个想法是将实现隐藏在整洁的 URL 后面。
-
我只是想自定义网址。我厌倦了查看没有扩展名的 URL。
标签: asp.net asp.net-mvc routes web-config asp.net-mvc-routing