View Full Version : modify server to return a status of 404
jbogs
04-10-2006, 06:58 AM
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
joelnet
04-10-2006, 09:17 AM
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
jbogs
04-10-2006, 10:27 AM
Can you give me the details?
thanks
John
Horse nutrition made easy
www.equus-rx.com
joelnet
04-10-2006, 10:30 AM
You can use "Response.StatusCode = 404" to set the status code.
Joel Thoms
DiscountASP.NET
http://www.DiscountASP.NET
jbogs
04-10-2006, 10:35 AM
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
bruce
04-10-2006, 10:40 AM
i found this on the google, it may help you
http://gsitecrawler.com/articles/error-404-200.asp
Bruce
DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)
jbogs
04-11-2006, 03:19 AM
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
bruce
04-11-2006, 09:18 AM
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 (http://www.DiscountASP.NET)
vBulletin® ©Jelsoft Enterprises Ltd.