Custom PHP Error Pages without redirection?
Hi cPanel Forums,
I have a little problem/question at the moment with custom error pages that I would like to fix/get resolved.
1) Let's say we are visiting: website.com/dashboard/
2) It loads correctly and you see the page.
3) You press F5 and suddenly are met with cpanel/apache's default error 500, which is a white page with the text server error 500 (i think)
4) Look at the URL, it still says website.com/dashboard/ yet it is showing the error page WITHOUT redirecting.
Now, if we go and set a custom error page it does NOT let us include PHP so the only option I am aware of is to redirect to a PHP page with something like OR set the ErrorDocument line in .htaccess:
Now, any custom error page or a error page that redirects to a PHP page will work but it will not allow us to press F5 because when we refresh website.com/dashboard/ it redirects to website.com/500.php so refreshing will just keep refreshing the error page. I know you could say put a link on the custom error page to "refresh/retry" using javascript:history.go(-1) but that doesn't solve the problem, I still can't use refresh/retry the URL. How can I stop it from redirecting but still show the custom error page?
">Now, any custom error page or a error page that redirects to a PHP page will work but it will not allow us to press F5 because when we refresh website.com/dashboard/ it redirects to website.com/500.php so refreshing will just keep refreshing the error page. I know you could say put a link on the custom error page to "refresh/retry" using javascript:history.go(-1) but that doesn't solve the problem, I still can't use refresh/retry the URL. How can I stop it from redirecting but still show the custom error page?
-
You may want to consult with a qualified system administrator, or post to the StackOverflow forums if you do not generate additional user-feedback to this thread. Also, you can open a feature request for a native option that allows for this behavior at: Submit A Feature Request Thank you. 0
Please sign in to leave a comment.
Comments
5 comments