How do I add a Custom Error Page for my Linux/Windows hosting account?

How do I add a Custom Error Page for my Linux/Windows hosting account?

24 x 7 x 365 US Based Support

1-Click Installs of Popular Applications and Site-Builders

99.9% Uptime Guarantee

How do I add a Custom Error Page for my Linux/Windows hosting account?

Last updated on March 09, 2015

Linux Fully Managed Accounts

To enable custom 404, or "File Not Found" page on your website, you will need to follow the steps below.

FTP to your account.

Proceed to the directory /usr/local/etc/httpd/conf/httpd.conf

Download the httpd.conf.conf file in ASCII mode.

Open the file in your favorite text editor, such as notepad or VI.

Open the file and scroll down near the bottom of the file and search for 404.

To create a 404 error entry for your domain, or all virtual host domains to point to the same page, make an entry like this:

#ErrorDocument 404 /missing.html

ErrorDocument 404 http://domain.com/errorpage.htm

The first line below should be commented out and the second line is where you would enter the redirect for any URL's that aren't on your server.

Save the file and upload the file back to your server in the same directory in ASCII mode. Be sure not to upload this file in binary mode, as it can bring down your websites.

If you wish to have a CUSTOMIZED 404 page for each virtual host, you will use the same line, but put it in each virtual host block differently. Here is an example of what you will input into the httpd.conf file.

ServerName vhdomain.com

ServerAlias vhdomain.com www.vhdomain.com

DocumentRoot /usr/local/etc/httpd/htdocs/vhdomaincom

ServerAdmin webmaster@top-level-domain

ErrorDocument 404 http://domain.com/errorpage.htm

Windows Fully Managed Accounts

If you would like to have your own custom error pages, simply create the page you would like and upload it to your server. Once this is completed, contact customer service and we will make that page the error for which ever type of error page you would like.