Dealing with Apache Errors
Posted by ASO Admin on 11 February 2020 09:47 AM
|
|
Several options exist for handling web server errors. For example, rather than showing the standard ugly error page that pops up when you reach a website that doesn't currently exist you can make your error page pretty! Useful! Fancy! DefaultThe default method, when using the "Error Pages" option in the cPanel Control Panel, are SSI files. This creates files for each type of http error. See the Control Panel for additional details and use. OthersIt may be desired to write these error handlers in a different language, such as PHP, as shown below. Using .htaccessThis example will assume a PHP error handler, and assume the root directory of the domain. The filenames of these files can be anything you choose. So within .htaccess place the (or an edited version of) the following: ErrorDocument 404 /404.php
| |
|