note 41725 deleted from function.file-exists by aidan

From: Date: Sat, 18 Sep 2004 05:28:02 +0000
Subject: note 41725 deleted from function.file-exists by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76927@lists.php.net to get a copy of this message
Note Submitter: alm ---- cvictor's code can get tripped up by apache's ErrorDocument directive: "Note that when you specify an ErrorDocument that points to a remote URL (ie. anything with a method such as "http" in front of it), Apache will send a redirect to the client to tell it where to find the document, even if the document ends up being on the same server. This has several implications, the most important being that the client will not receive the original error status code, but instead will receive a redirect status code. This in turn can confuse web robots and other clients which try to determine if a URL is valid using the status code." (http://httpd.apache.org/docs/mod/core.html#errordocument) I'm at something of a loss to correct this -- could check if there is more than one '302 Found' returned from the host, but that could be a legit redirect instead of a redirect by ErrorDocument.

« previous php.notes (#76927) next »