ASP.NET web pages without aspx file extension

2020-02-11 03:12发布

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

3条回答
再贱就再见
2楼-- · 2020-02-11 03:55

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

查看更多
beautiful°
3楼-- · 2020-02-11 03:59

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

查看更多
萌系小妹纸
4楼-- · 2020-02-11 04:00

Url rewriting.

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

查看更多
登录 后发表回答