Article No. 192
Created: 04:32 AM 12.26.03
Author: HPU Support [Link: support@homepageuniverse.com]
Original URL: https://my.homepageuniverse.com/support/knowledgebase/question.php?qstId=192
If you'd like to create custom error pages, this tutorial will assist you in doing so using the .htaccess file. The server has a location setup for you to use your custom error pages (provided they are named the same as the default ones setup by plesk). The default error pages are setup in the errordocs folder (visible through FTP).
Open Notepad (or equivalent software depending on your OS) and paste in the following:
ErrorDocument Code /errorpage.html
Make sure to replace Code above with the appropriate error code. The main error codes are 301 (Moved Permanently), 304 (Not Modified), 403 (Forbidden), 404 (Not Found), and 500 (Internal Server Error).
Save the file as .htaccess (the .txt extension will be appended).
Upload the htaccess.txt file via FTP in Automatic Transfer Mode to the httpdocs folder. After uploaded right click the file (server copy) and choose rename. Edit the file name, so that it will be .htaccess (add . at the beginning and remove the .txt extension)
Now your visitors will see your custom error pages, rather than the boring default ones. Enjoy!
Disabling Default Server Error Pages
If you plan to use your own error page (other than overwriting the ones in the errordocs folder) you might wish to disable the default one through Plesk.
Log into Plesk and click on the domain for which you wish to disable the default error pages. Click "Hosting" and than "Next". Scroll down till you see "Apache Error Documents" and remove the checkmark. Click Update.