URL Rewriter is very good. If you want to use it "extensionless" you need to change that on the Web Site in IIS. This is done in Properties on the Web Site. Go to Home Directory -> Configuration then press Insert on the Wildcard part. I have this:
c:\windows\microsoft.net\f
Uncheck the box "Verify that file exists".
Now if you are using URL Rewriter you can have this in your web.config:
<RewriterRule>
<LookFor>~/Default/?</Look
<SendTo>~/Page_Default.asp
</RewriterRule>
This lets me write http://www.mysite.com/Defa
with or without a / in the end.
The reast is probably clear.
Remember that you do need an actionless for so that its not postbacking to the real url. More about that can be read on:
http://msdn2.microsoft.com
Good Luck!
Main Topics
Browse All Topics





by: mrichmonPosted on 2007-09-18 at 13:07:06ID: 19916156
http://weblogs.asp.net/ski llet/archi ve/2004/05 /04/ 125523 .aspx