I am using a *.html script mapping in IIS 7.5 to force .html files to be processed by asp.net
This allows me to do something like domain.com/file-name-here.html and have IIS catch it in the Application_BeginRequest and rewrite the context to domain.com/file.aspx?a=file-name-here
This works well even though the .html file in the URL does not actually exist becuase I am rewriting the context before it requests the file. I am having trouble doing that with non existant directories though - IIS keeps throwing a 404 error on teh static handler. if I tell the static handler not to throw errors
domain.com/folder-here/ - this doesnt work
domain.com/file-here.html - this does work
How can I make the folder portion work as well ?
View Complete Post