Click here to Skip to main content
15,847,427 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
Hi, I want to remove .aspx from my webpage in ASP.Net. I download URL Rewrite Module and installed to winserver 2008 and this:
http://www.iis.net/downloads/microsoft/url-rewrite[^]

I'm a beginner and I treid;:
i try http://stackoverflow.com/questions/13216673/remove-aspx-extention-using-iis7-url-rewrite[^]

but it dosen't work.

for example change default.aspx ---> default
How do I do this?
Posted
Updated 11-Mar-13 22:02pm
v5
Comments
Sergey Alexandrovich Kryukov 11-Mar-13 13:22pm    
"Doesn't work" is not informative. Therefore, nothing to discuss right now. If you can, please use "Improve question" above.
—SA
sjelen 11-Mar-13 13:57pm    
Rewriting URLs in web forms app is not that easy, ASP.NET depends on file extension to find appropriate handler for a request.
Also some server controls render URLs in their output, so you would need to rewrite both request and response.
If you're making a new application and want URLs to look like that, consider using ASP.NET MVC framework instead of web forms.
ZurdoDev 11-Mar-13 14:53pm    
What does "doesn't work" mean? Is there an error?
jiji2663 12-Mar-13 3:01am    
for example change default.aspx ---> default

1 solution

you can find a very good tutorial regarding URL rewrite in asp.net over herein this link below.

tip-trick-url-rewriting-with-asp-net[^]
 
Share this answer
 
Comments
jiji2663 12-Mar-13 4:00am    
i want use url rewriter module in iis
please F1F1F1F1F1F1

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