How to fix HTTP Error 500?
Today, I modified 2 files in the Hostgator server hosting this blog.
Error 500 is like a website crash when too much traffic is coming in.
Instead of visitors looking at a dead site, we can redirect them away.
The 2 Files Modified
The files under Public HTML folder, “.htacces” and “500.shtml (created manually).
The Error 500 Redirect Code in HTACCESS
The additional code in public_html/.htaccess to activate page 500.shtml.
ErrorDocument 500 /500.shtml
The Auto Redirect Link HTML Code
The code in public_html/500.shtml file to redirect visitors after 3 seconds.
<!DOCTYPE HTML>
<html lang=”en-US”>
<head>
<meta charset=”UTF-8″>
<meta http-equiv=”refresh” content=”3; url=http://adrianvideoimage.com/computer-and-it-exhibitions-in-singapore/ “>
<title>Adrian Video Image</title>
</head>
<body>
<!– Note: don’t tell people to `click` the link, just tell them that it is a link. –>
If you are not redirected automatically, follow this <a href=’http://adrianvideoimage.com/computer-and-it-exhibitions-in-singapore/ ‘> Adrian Video Image </a>.
</body>
</html>
It used to redirect to another domain. Not good for Google SEO. So I changed it to redirect back to the same domain after 3 seconds. It’s an experiemnt. Let’s see what happends next.
Adrian Lee
Adrian Video Image | The Journal of Adrian Lee | Singapore