Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 11-Mar-13 7:39am
jiji26631.8K
Edited 11-Mar-13 22:02pm
v5
Comments
Sergey Alexandrovich Kryukov at 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 at 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.
ryanb31 at 11-Mar-13 14:53pm
   
What does "doesn't work" mean? Is there an error?
jiji2663 at 12-Mar-13 3:01am
   
for example change default.aspx ---> default

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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[^]
  Permalink  
Comments
jiji2663 at 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)

  Print Answers RSS
0 OriginalGriff 250
1 Jochen Arndt 155
2 PIEBALDconsult 150
3 DamithSL 125
4 Afzaal Ahmad Zeeshan 120
0 OriginalGriff 5,695
1 DamithSL 4,591
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,190


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 12 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100