views:

59

answers:

3

Hello,

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  A: 

Url rewriting.

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

XIII
+2  A: 

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

Khaled
You should also be able to use MVC's Url Routing capabilities from a WebForms application, see http://msdn.microsoft.com/en-us/magazine/dd347546.aspx for example
synhershko
A: 

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

ajay_whiz