Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
how can i remove the .aspx from the url or rename it into html or any extension.

Thank You In Advance
Posted

The technique of changing the original URL to some other URL(generally meaningful and easy to understand) is known as URL rewriting. There are various methods available for doing so. Few are mention below.

1. Via Web.config(http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx)

2. Via Route handler(http://www.codeproject.com/Articles/77199/URL-Routing-with-ASP-NET-4-0)

3. Via HTTPModule(http://www.codeproject.com/Articles/33341/URL-Rewriting-using-ASP-NET-for-SEO)


You can go with anyone which best suit to your requirement.
 
Share this answer
 
hi,

use url rewrieting. How it is used see here [^].
 
Share this answer
 
You can use MVC and not have filenames at all. Otherwise, you need to remap your IIS to regard whatever filename you choose to be a .NET page. Doing this to .html will obviously mean any html page will be parsed by .NET, too.
 
Share this answer
 
Comments
nbeiruty 6-Feb-12 6:42am    
how can i use MVC cuz i dont mind if i did not have filenames at all. any example?
Christian Graus 6-Feb-12 6:44am    
You could google ASP.NET MVC. You need VS 2010 and you need to download something to get the latest version. It's a whole new way of writing web pages, although it can co-exist with old style ASP.NET pages.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900