Speedsoft Home Page
 
Order Hosting Services Services and Pricing Support Home Page Search Speedsoft Contact Information Site Map
: Custom Error Pages

You can create custom error pages for your web site using an .htaccess file in your web server root directory. Simply create a file named .htaccess (or edit the one that might already be in your root folder) and add the following line to it:

ErrorDocument 404 /errordocs/page_not_found.html

This will cause the page named "page_not_found.html" located in a folder named "errordocs" to be displayed if a visitor to your web site tries to access a page that does not exist.  The three main types of error documents are:

1. Switch on support for custom error documents through the Plesk interface. Go to a specific domain's administration page, click Setup, and select the Custom Error Documents checkbox.
2. Edit or replace the respective files. Be sure to preserve the correct file names:

  • 400 Bad File Request - bad_request.html
  • 401 Unauthorized - unauthorized.html
  • 403 Forbidden/Access denied - forbidden.html
  • 404 File Not Found - not_found.html
  • 500 Internal Server Error - internal_server_error.html

3. Once done editing, you will have to wait until the web server is restarted. After that, the web server will start using your error documents.

For more information about this, please see the Apache server documentation at http://httpd.apache.org/docs/mod/core.html#errordocument.


 

Home | Order | Services | Support | CGI Central | E-Commerce | Search | Contact Us | Site Map | Links
Copyright © 1995-2008 Speedsoft, LLC. All rights reserved.