Re: 404's and requesting page
| From: | Tim | Date: | Sun, 05 Aug 2001 21:21:49 +0000 |
| Subject: | Re: 404's and requesting page | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61353@lists.php.net to get a copy of this message | ||
Ah, yes. You are correct about the $REDIRECT_URL thing. I was looking
at some old code I had to deal with this and mis-read it. :)
I use ErrorDoument just as you describe.
I just tried this, and on my system $HTTP_SERVER_VARS["REQUEST_URI"]
contains the URI that generated the error.
If your 404 page just dumps phpinfo() you can see the list of variables
available to your script.
- Tim
On 05 Aug 2001 21:16:29 +0100, Tom Carter wrote:
> Thanks for the advice Tim, however it didn't work. Neither of the statements
> in your mail were set ... I trued $REDIRECT_STATUS and that was set to 401
> (even tho that doc wasn't capturing that error) and $REDIRECT_URL was set to
> the path of the file handling the errors.
>
> Is there some other apache config I need to make?
> The .htaccess line I have doing the redirect is
> ErrorDocument 404 path/to/file