Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to write URL rewrite code in asp.net?
For Example::::
Sample --->http://localhost/1245/sample.aspx
but i want http://localhost/1245/sample
AND
vinod---->http://localhost/sample/vinod.aspx
but i want http://localhost/1245/sample/vinod

plz help me
plz
plz
Posted

1 solution

It depends on what do you use to serve your ASP.NET sites/applications. If this is IIS, you can learn it, for example, from this article: http://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module[^].

[EDIT] See also my recent answer: hide url in asp.net web project c# ?[^].

—SA
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 26-Dec-14 22:31pm    
Thank you, Tadit.
—SA
King Fisher 27-Dec-14 0:04am    
very useful link .. my 5+
Sergey Alexandrovich Kryukov 27-Dec-14 1:44am    
Thank you.
—SA

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