Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET web pages without aspx file extension

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

like image 788
Tomas Avatar asked Aug 23 '10 10:08

Tomas


2 Answers

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

like image 197
Khaled Avatar answered Sep 23 '22 11:09

Khaled


Url rewriting.

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

like image 43
Kris van der Mast Avatar answered Sep 24 '22 11:09

Kris van der Mast