ASP.NET url rewriting does not work with folder urls
I wrote my own url rewriter module to take certain paths and display them in our directory from the database.
I am using the technique outlined in the link at the bottom of my post.
I am using .NET 3.5. The problem is that it only works if there is a page name at the end of the original URL, but if the page name is disabled then it doesn't even call my handler. So, for example, the URL
http://mysite.com/folder/index.aspx works but
http://mysite.com/folder/ does not.
The one with only a folder never gets into my handler class at all. Do you need to do something to make the folders work properly?
http://www.simple-talk.com/dotnet/asp.net/a-complete-url-rewriting-solution-for-asp.net-2.0/
a source to share
Is a problem when using .NET overwrite. You need to set up your wildcard mapping correctly. Here is a good link:
http://devtalk.dk/2007/03/19/Wildcard+Mapping+And+URL+Rewriting+On+IIS7.aspx
Another option would be to rewrite IIS ISAPI with regular expressions. At my company, we actually use both.
Check out this link for links:
http://www.kowitz.net/archive/2006/09/15/url-rewriting-using-ihttpmodule-vs-isapi-rewrite.aspx
a source to share
I'm not sure how to solve it, but the reason is because IIS treats it as a directory (which it is) and has no knowledge of how to pass the folder to the ASP.NET isapi filter and start the .Net handler.
You can try doing this with IIS7 and injecting the handler into the IIS pipeline. Or check the bottom of the article you referenced below the heading "Using RewriteModule".
a source to share