asp.net - 如何去掉 URL 中的实际文件名?

标签 asp.net iis url

例如,这个网址是http://stackoverflow.com/questions/ask ,而不是类似 http://stackoverflow.com/questions/ask.aspx 。我怎样才能做到这一点?

最佳答案

您可以使用这些技巧和工具:

http://forums.iis.net/t/1150350.aspx - IIS解决方案

http://forums.asp.net/t/979581.aspx - ASP.NET 404页面解决方案

关于asp.net - 如何去掉 URL 中的实际文件名?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7705976/

相关文章:

asp.net - MVC、IIS 和 Azure 日志记录错误

url - 获取 Orchard ContentItem 显示 URL

javascript - 如何在没有 href 但使用内容和 url 属性的情况下在新窗口中打开 url

html - 通过 URL 传递表单变量

asp.net - 如何在服务器级别定义错误处理逻辑

c# - 如何生成具有组格式的 TreeView ? (表示起始词的字母)

git - 在 Windows 服务器上从 bitbucket 自动部署到 iis

c# - 附加到进程 IIS 未命中断点

c# - Entity Framework 树结构

c# - 允许用户上传 Excel 文档的安全实现