October 30th, 2012, 05:39 PM
What is the best way of redirecting internal server errors 500?
What is the best way of redirecting internal server error like this to another page?
October 30th, 2012, 05:52 PM
1. Make PHP not send 500s when it has a problem. I honestly don't know how or when that happens but I'm sure somebody else does.
2. Use an ErrorDocument. This will catch the case when it's not PHP but something else causing a problem (which should never be the case on a live server).
October 30th, 2012, 08:41 PM
I have an htaccess that redirects. I assume that there are some pages indexed that do not exist. As it is a mod_write rule that redirects and it doesn't exist, it shows 500! I couldn't use the link you send
Originally Posted by requinix
October 30th, 2012, 10:16 PM
If mod_rewrite tries to redirect to something that doesn't exist then you'll get a 404.
Originally Posted by zxcvbnm
So it's not a PHP page causing this? Look at the server logs to see what the problem is.