Drongo_III Posted April 30, 2013 Share Posted April 30, 2013 Hello I have a quick question. I want to make a custom 500 error page. I understand this is achieved by tweaking httpd.conf file to direct to a specific file in the event of a 500 error. What I want to know is if I make a html 500 error page should this be located on another server? The logic being that if the server can't render any of the normal pages on a site due to a 500 error why would it be able to render my customer 500 page. Does that make sense? And whats the best practice here? Thanks, Drongo Quote Link to comment Share on other sites More sharing options...
Drongo_III Posted May 3, 2013 Author Share Posted May 3, 2013 Could anyone help with this one please? Quote Link to comment Share on other sites More sharing options...
requinix Posted May 4, 2013 Share Posted May 4, 2013 Error pages are handled specially so as long as they don't require something that could fail (like PHP) then they'll work. Static HTML, possibly with server-side includes, will work fine. Quote Link to comment Share on other sites More sharing options...
xenLiam Posted May 24, 2013 Share Posted May 24, 2013 Create an .htaccess file and put this in: ErrorDocument 500 http://site.com/500.html Replace the URL to match the location of your error page. You can do the same for 403s, 404s, etc. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.