Backend Development

Custom error 500 page

Submitted by bradersrs, , Thread ID: 35995

Thread Closed
bradersrs
Newbie
Prime
Level:
0
Reputation:
0
Posts:
15
Likes:
1
Credits:
3
09-06-2017, 09:12 PM
#1
Hi, is it possible to have a custom error 500 page at all?

RE: Custom error 500 page

shahbaz252
Newbie
Level:
0
Reputation:
0
Posts:
15
Likes:
0
Credits:
5
10-06-2017, 05:26 AM
#2
have u googled this or just made a thread directly?

RE: Custom error 500 page

heyth
Newbie
Level:
0
Reputation:
-3
Posts:
16
Likes:
0
Credits:
8
10-06-2017, 11:29 PM
#3
Read about .htaccess mate.

RE: Custom error 500 page

jeganad
Newbie
Level:
0
Reputation:
0
Posts:
13
Likes:
1
Credits:
15
24-09-2017, 01:19 PM
#6
09-06-2017, 09:12 PM
bradersrs Wrote:
Hi, is it possible to have a custom error 500 page at all?

yes, edit 500.html file from root folder as your wish

RE: Custom error 500 page

cyan1de
Novice
Level:
0
Reputation:
0
Posts:
25
Likes:
0
Credits:
1
24-08-2020, 12:07 AM
#7
I've managed to redirect to a custom php file to display the error 404 page via the configuration information I've set in the apache2 sites-available "website.conf" file, but the 500 page always displays a default browser 500 error page and not the one i've actually redirected to...

The PHP code takes the number of the "id" code posted to it and generates a large error number on the page and then displays the corresponding error's description...

ErrorDocument 404 /error/error.php?id=404
ErrorDocument 500 /error/error.php?id=500

If the 404 error redirects ok, any ideas why the 500 is not working and how I can fix it?

RE: Custom error 500 page

visko1
Newbie
Level:
1
Reputation:
0
Posts:
16
Likes:
0
Credits:
8
16-03-2021, 03:31 PM
#8
The PHP framework LARAVEL has some nice built in features for 404 and other pages errors.

Don't try create your own.

RE: Custom error 500 page

cristianrg36
Newbie
Level:
1
Reputation:
0
Posts:
15
Likes:
0
Credits:
15
13-04-2021, 10:19 PM
#10
yeah sure best framework of phpp

Users browsing this thread: 1 Guest(s)