Customise the 500 Error page in php

后端 未结 2 1408
小鲜肉
小鲜肉 2021-01-25 09:42

I have my website code in codeigniter wherein I am fusing images using Imagick in php.There are a lot of functions which can generate the 500 HTTP error.I require a

相关标签:
2条回答
  • 2021-01-25 10:05

    Create a file called 500.shtml and upload it to public_html or whatever your root uploading directory is. Use the 500.shtml file to create a 500 Internal Server Error custom page.

    0 讨论(0)
  • 2021-01-25 10:16

    Codeigniter actually has a custom 500 error page. If you find your getting a generic 500 error page, it could be Apache overriding the codeiginter 500 error page.

    You could override it in the .htaccess to direct it to your own custom 500.html, but then you will miss out on any of the error information provided by codeiginter:

    ErrorDocument 500 /errors/500.html
    


    You could also edit the codeiginter 500 error page found in /application/errors/. I think it is the error_php.php file.

    0 讨论(0)
提交回复
热议问题