Click here to Skip to main content
15,920,217 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We observe that in some pages the address of the page does not show file extension like in

http://www.youtube.com/watch?v=gwS1tGLB0vc

or when there is no query string

http://mysite.com/about/

Kindly advice me how I can host my pages in asp.net like this.
Posted
Updated 18-Mar-15 21:03pm
v2

1 solution

There are several ways you can achieve this.
- You can do Url Rewriting from the code itself:
http://weblogs.asp.net/scottgu/tip-trick-url-rewriting-with-asp-net[^]
- You can use Url Routing (available in .NET 4.0 and above):
http://www.4guysfromrolla.com/articles/012710-1.aspx[^]
- Or you can use URL Rewrite on IIS:
http://ruslany.net/2008/09/aspnet-routing-request-filtering-url-rewriting/[^]
 
Share this answer
 
v2

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