Creating a custom error page (in Linux)

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

  • 0 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

yum is not installed

Yum is not installed by default in all CentOS based VPSs.To install yum :1. Login to VZPP Power...

How to clear DNS cache from your PC?

To clear the DNS cache resolver from your Windows machine, kindly follow the steps below.1. Click...

How to do traceroute

Traceroute is a diagnostic tool that displays the route and transit delay of packets across the...

Show hidden files in Filezilla

Filezilla and even some FTP clients are set not to show hidden files by default.Hidden files in...

How to enable Telnet client in Windows Vista/7?

Telnet can be use as a diagnostic tool in checking the port of your VPS. Like for example, if you...