In Linux VPS, to create a custom error page you must do the following:
- Create your desired custom error page.
- Save the custom error page and upload it to your webspace.
- Specify the custom error page in the .htaccess file.
- Create the .htaccess file and upload it - if you already have it from your webspace, just edit it.
Here are some examples of the directives that you will have to put in .htaccess.
ErrorDocument 403 http://www.your-domain.com/403.html
ErrorDocument 404 http://www.your-domain.com/404.html
ErrorDocument 500 http://www.your-domain.com/500.html