|
Implements an error handler for 401, 403 and 404 errors so that if the user types a user name after the url, and Apache complains, thanks to the ErrorDocument directive this handler will receive the request and we will be able to perform a redirectiom
To get this to work, we need a provider which allows to use .htaccess files in their accounts and at the same time, allows to have ErrorDocument directives in the .htaccess file.
This should be the content of the file:
ErrorDocument 401 /plog/error.php ErrorDocument 403 /plog/error.php ErrorDocument 404 /plog/error.php
If LifeType is running somewhere else other than /plog/, then that should be changed since an absolute URL is required.
定義在 error.php 檔案之第 31 行. |