« Previous Next »

Thread: Default document not work for non-exist url

Last post 11-04-2007 9:28 PM by anilr. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 11-04-2007, 2:19 AM

    Default document not work for non-exist url

    As I am using monorail which use handler to redirect url to various controller functions, we used to implement default document to an non-exist url which would then redirect to the index method and let our own controller intercept such  call. In IIS7 seems DefaultDocumentModule refuse to do such redirection if the document is missing. I tried to take away the option of looking for file inside * handler but then it just show me blank page. Someway I can find out more information from the filter via sort of logging facility?
  • 11-04-2007, 9:28 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Default document not work for non-exist url

    default-document module can never work the way you want, since it needs to choose from multiple possible default-documents and send the request to the default-document that actually exists.

    If you always want request to a directory to go to a specific document, you can write a httpredirection rule for that.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
Page 1 of 1 (2 items)
Microsoft Communities