|
Posted by Adam on 09/25/79 11:50
On Fri, 16 Jun 2006 19:21:39 GMT, Colin McKinnon wrote:
>Adam wrote:
>
>> I'm having a problem with finding the URL error value with a custom
>> error404 (PHP) page - accessed via an .htaccess error redirect.
>>
>
>try putting print_r($_SERVER) in your errorpage - it may give you a clue.
Thanks - but no joy :-(
The array spits out the expected variables - but anything related to
URLs (REFERER, SCRIPT_NAME, URI etc.) all point either to the
referring page or the final error page. Nothing contains the failed
URL information.
I'll check the Apache logs to see whether anything gets written there,
but I'm really trying to find a solution that doesn't involve messing
with logs.
Basically, it appears then that if I have a "totally_non_existant.php"
link in a page, a user [rightly] gets the custom error page but
there's no way I can work out what the bad link is - other than that
it's somewhere on that referring page <??>.
Adam.
Navigation:
[Reply to this message]
|