You are Here:   FAQ->Scripting & Programming->.htaccess->Article #1


How do I create custom error pages (Linux)?


For Linux packages only!Linux Packages Only!
      This includes:
arrow 1&1 Beginner arrow 1&1 Dual Starter
arrow 1&1 Home (Linux) arrow 1&1 Dual Standard (Linux)
arrow 1&1 Business (Linux) arrow 1&1 Dual Unlimted (Linux)
arrow 1&1 Business Pro (Linux) arrow 1&1 Dual Business (Linux)
arrow 1&1 Professional (Linux) arrow 1&1 Managed Servers





To use your own custom error page, you must:
arrow image Create the custom error page.
arrow image Save the custom error page.
arrow image Upload the custom error page to your web space.
arrow image Specify the path to the custom error page in the .htaccess file.
arrow image Disable Empty Pages Parking.

For more help on how to ensure that the Empty Pages Parking is disabled, please reference How can I enable/disable the empty parking pages?

Some common errors are listed in the table below.
Error Number Error Description
400 Bad Syntax
403 Forbidden
404 Not Found
500 Internal Error


Reference the example below for the format to use. Each new line must start with "ErrorDocument" followed by a space and then the error number. Leave another space after the error number and then specify the URL for the error page to use. Please note that this .htaccess method does not work for PHP files.

ErrorDocument 400 http://www.your_domain.com/errorDocs/400.html
ErrorDocument 403 http://www.your_domain.com/errorDocs/403.html
ErrorDocument 404 http://www.your_domain.com/errorDocs/404.html
ErrorDocument 500 http://www.your_domain.com/errorDocs/500.html   



Save the .htaccess file in the root of your webspace. If you already have a .htaccess file in the root of your webspace, do not overwrite the file but edit the existing one instead. If you are creating/editing the file on a Windows machine, use a basic text editor like Wordpad or Notepad. Save the file as htaccess.txt first and then upload the file to the root of your webspace. Once uploaded, you can then rename the file to .htaccess.


Print Article
How useful was this article?
(From 5 = Very Useful to 1 = Not Very Useful at all):
1 2 3 4 5