modify server to return a status of 404

Discussion in 'ASP.NET / ASP.NET Core' started by jbogs, Apr 10, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I'm trying to modify my web server configuration to return a status of 404 in the header of 404 pages.

    Right now the 404 (file not found) error page returns a status of 200 (OK) in the header.

    Suggestions?

    Thanks
    John
     
  2. I think youcan change your 404 page to an aspx page and manually force the response code.


    Joel Thoms
    DiscountASP.NET
    http://www.DiscountASP.NET
     
  3. Can you give me the details?

    thanks
    John

    Horse nutrition made easy
    www.equus-rx.com
     
  4. Hi Joel- I'm still wet behind the ears here. Can you walk me through it?


    Thanks


    John


    Horse nutrition made easy
    www.equus-rx.com
     
  5. Bruce

    Bruce DiscountASP.NET Staff

  6. Hi Bruce- great suggestion. In fact I found a great free product at http://johannesmueller.com/gs/
    to build site maps.

    However I need some help. I tried to follow the other info and ended up with a 500 error. Never got a message that said my site was melting down before....

    I thoguht I followed the steps but NG. Any thoughts?

    Horse nutrition made easy
    www.equus-rx.com
     
  7. Bruce

    Bruce DiscountASP.NET Staff

    500 usually means the application crashed. Unfortunately, it is a generic error. The real error may be logged in the HTTP log. You should examine the log and see if you find anything.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page