You are Here: FAQScripting & Programming.htaccessArticle #1
How do I create custom error pages (Linux)?
Linux Packages Only!
To use your own custom error page, you must:
Create the custom error page.
Save the custom error page.
Upload the custom error page to your web space.
Specify the path to the custom error page in the .htaccess file.
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.
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.
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.
© 2012 1&1 Internet Ltd