RE: [PHP] 404 error checker
| From: | John Huggins | Date: | Thu, 01 Feb 2001 19:49:26 +0000 |
| Subject: | RE: [PHP] 404 error checker | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-37698@lists.php.net to get a copy of this message | ||
Ah yes, this seems to stem from the fact the "ErrorDocument 404 /404.php" is
really a kind if redirect. What's weird about this is if you use it one way
(in the .htaccess) the PHP variables that appear are pre-redirect. If you
put "Errordocument 404 /404.php" into the httpd.conf the PHP variables are
post-redirect and are just as if you went straight to the 404.php page. I
am sure I am missing some kind of Apache "point-of-view," but is it working
for most of my URLs now. Some ancient CGI accesses come in now and again
and they show this problem.
However, thanks for the idea and code. Even as just a 404 trigger, this is
very useful. The emails are starting to show just how many old URLs exist
on my servers.
John
> -----Original Message-----
> From: Institute for Social Ecology [mailto:ise@social-ecology.org]
> Sent: Thursday, February 01, 2001 2:32 PM
> To: John Huggins
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] 404 error checker
>
>
> John,
>
> I had the same problem, but it was a matter of how I was refering the teh
> 404 file in htaccess. It is working fine for me now. An example of my
> output is below. I wish I knew more about appache and htaccess to help
> you out, but I don't.
>
> michael
>