Jump to content

Custom Status Messages


chibineku

Recommended Posts

I've moved on from mod_rewrite to redirects and custom error messages as a way of mediating poor search engine rankings, and I have a couple of questions that my book doesn't answer very well:1) I can create custom 500 errors - i.e. server error. If my server is down, how does this message get to the person making the request? Surely if the 500 error can get to them, my content can, too? 2) Can I add any sort of content to custom 500 pages that I want, i.e. can they be full (D/X)HTML pages?

Link to comment
Share on other sites

So is there any point in a custom 500 error then? It seems odd to put it in a book if it makes no difference.

Link to comment
Share on other sites

A 500 means the server had an error on it, not that the server is unreachable. If the server is unreachable you're not going to get any response code at all. The server is what sends the response codes, so obviously the server has to be reachable and online if it's going to send any response at all.http://en.wikipedia.org/wiki/List_of_HTTP_status_codesHere's a 500 error:

<?phpif ($wtf){else?>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...