如何在 asp.net 中删除.aspx.asmx 后缀



我们的大多数应用程序都基于 asp.net。

所以所有的网址都会有后缀,比如.aspx或.asmx

我想知道是否有任何想法可以删除它们?

请查看以下教程之一:

网址路由(ASP.Net 4.0 及更高版本):

  • 使用 ASP.NET 4 个 Web 表单进行 URL 路由 -- Scott Guthrie

网址重写(ASP.Net 3.5 及更低版本):

  • Url Rewrite with ASP.NET -- Scott Guthrie
  • ASP.Net 中的 URL 结构干净 -- Sharpertutorials.com

最新更新