I have a directory with 100+ sub folders and files.
/Whatever/...
I want to redirect any request to the /Whatever/* folder to /Whatever/temp.html
The problem i'm having is that after I setup the redirect I get an endless redirect loop because /whatever/temp.html matched /Whatever/* so how开发者_StackOverflow社区 can I exclude a file from a redirect?
IIS 7.5
I don't think there is a way to do it using the IIS redirect feature. Either create a different folder to redirect them to or exclude the target folder by redirect each individual folder using wildcards. You might want to try the url rewrite module http://www.iis.net/download/URLRewrite
You can setup different pages to be "default documents". Look into adding temp.html to the list of default documents.
http://learn.iis.net/page.aspx/203/default-documents/
精彩评论