Welcome to WebmasterWorld Guest from 54.147.0.174

Forum Moderators: ocean10000

Message Too Old, No Replies

How can I get a 500 server error message to show as a 404

hundreds of urls with 500 error messages

     

deanw

3:15 pm on Dec 7, 2007 (gmt 0)

10+ Year Member



I need to delete hundreds of records in my database that will result in 500 'current record has been deleted' error messages
with the URL's. I have a user friendly page for visitors but I really need to show these URL's as 404's. Any suggestions on how to do this?

Receptional Andy

7:51 pm on Dec 9, 2007 (gmt 0)



This sounds to me like there isn't any error checking within the script itself, and so you're falling back to default errors.

Now, I'm not too hot on ASP, and without knowing the code that triggers the error there's only so specific I can get. But if my assumption is correct it should be a fairly straightforward error routine: if records don't exist, then output a 404 header with Response.Status = "404 Not Found".

It might be possible to hack a custom error document to try to achieve a similar thing, but unless I've misunderstood what's going on that wouldn't be a very good approach.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month