Is there a way to find out the uri of a redirected page? The page is redirected due to a 404 error. Is there a way to print to the dynamic error document the name of the missing page as well as email the webmaster? TIA, Jim
Put the following in your (php) error document.
<? mail("webmaster","Not found: $REDIRECT_URL", "Referred by $HTTP_REFERER NOT FOUND $REDIRECT_URL Visited by $REMOTE_HOST"); ?>
Thanks Steve, I have been trying to pick up the $REDIRECT_URL but with no luck tried like; $redir = getenv($REDIRECT_URL); quoted unquoted....alone Am I missing something? Linux/Apache1.3.12/Php4.0.3pl1 Jim