The basics of hiding the page extension when using ASP.NET

I recommend

Classic ASP.NET uses the page extension .aspx. If you want to hide the .aspx page from the browser URL I’d recommend using URL rewriting to make your pages extensionless.

I’ve created a screencast which goes over the basic idea of how to implement extensionless URLs in your ASP.NET application. I use Microsoft’s URL Rewrite module which can be used for IIS 7. There are other URL rewrite modules available which can be used to accomplish the same thing for IIS 6.

I created this tutorial because of a question about hiding ASP.NET pages extensions on Stack Overflow.

Technical ASP.NET December 6, 2009


Comments

thank you very much.... u're like an angel from heaven to the newbie like me... :)

oman - April 7, 2010

Thank you for the comment. I appreciate it :-)

Nathan Fox - April 7, 2010

I dont find URL Rewriting module in my IIS. where do I get that and how to install it. Thanks in Advance

srk - July 8, 2010

Keep in mind the IIS URL Rewrite Module is only available for IIS 7 and IIS 7.5. So Vista, Windows 7, Server 2008, and Server 2008 R2. You can download it from the following page <a href="http://www.iis.net/download/URLRewrite" title="IIS URL Rewrite Module">IIS URL Rewrite Module</a>.

Nathan Fox - July 8, 2010