Re: 404 error
| From: | Michael Dearman | Date: | Sat, 09 Dec 2000 10:07:26 +0000 |
| Subject: | Re: 404 error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29470@lists.php.net to get a copy of this message | ||
Jim Carey wrote:
>
> I want to write a 404 error handler that knows the path/page that was in
> error that caused the program to be accessed . Is there an easy (or
> documented) way of obtaining this information inside a php prog ?
>
Check out the ErrorDocument directive for Apache. You can use it in
httpd.conf or in a .htaccess file. Use this to redirect to a script where
you can work with the $REQUEST_URI.
Mike D.