ASP.NET web pages without aspx file extension

感情迁移 提交于 2019-11-28 00:20:38

问题


What is best solution to serve ASP.NET web pages without aspx extension? I want to make http://www.mydomain.com/mypage instead of http://www.mydomain.com/mypage.aspx

I use .NET 2.0 and IIS6


回答1:


If you can upgrade to .Net 4.0,which got a built-in URL Routing feature to do it for you easily,read this article by Scott Mitchel

otherwise if you don't want to move to .net 4.0,read this article by Scott Gu




回答2:


Url rewriting.

For .NET there are already modules available like this one.




回答3:


For IIS 6.0 you can use ionics ISAPI URL Rewrite filter http://iirf.codeplex.com/ for extention less urls



来源:https://stackoverflow.com/questions/3546654/asp-net-web-pages-without-aspx-file-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!