Create custom error pages using .htaccess
If you’re running a site on Apache’s web server, you can easily create custom error pages using Apache’s .htaccess file.
First, create or edit an .htaccess file in your public_html directory so that it has the following lines in it:
ErrorDocument 404 /myerrors/404.html
ErrorDocument 403 /myerrors/403.html
ErrorDocument 500 /myerrors/500.html
Here’s what each piece does:
Leave a Comment