« Previous Next »

Thread: IIS Error Pages

Last post 01-01-2009 10:19 AM by jeff@zina.com. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 01-01-2009, 7:00 AM

    IIS Error Pages

     I went to "Error Pages" section in IIS7, and changed the option for 404 status code, to "Execute a URL on this site". The problem is that with this option the IIS returns status code 200, which is wrong!!!

     If I choose "Insert content from static file into the error response" then it work fine and returns 404 status code.

     

    How can I make the "Execute a URL on this site" option to work correctly?

     

    Thanks.

  • 01-01-2009, 10:19 AM In reply to

    Re: IIS Error Pages

    Technically, it is working correctly.  Since the URL worked, it responds with a 200 status code.  What you might want is to insert content of a redirect, so the 404 is reported and then forwarded to a working URL.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
Page 1 of 1 (2 items)
Microsoft Communities