Voici le script de ma page error 404:
Code : Tout sélectionner
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?PHP
// reference: http://www.toulouse-renaissance.net/c_outils/c_erreur404.htm
// cette page doit etre a la racine du site
// voir .htaccess et error404.php a la racine
echo ("<body bgcolor=\"#CC9900\">");
$result=1;
if (preg_match("'DigExt'",$HTTP_USER_AGENT)) $result=0;
if (preg_match("'votre_application_JAVA'",$SCRIPT_URI)) $result=0;
if (preg_match("'cltreq.asp'",$SCRIPT_URI)) $result=0;
if (preg_match("'owssvr.dll'",$SCRIPT_URI)) $result=0;
if ($result==1){
$to="gringojack@aol.com";
$sujet="ERREUR 404 sur BUGGYSPY.";
if(empty($HTTP_REFERER)) { $provenance="Pas de lien intermédiaire, connexion directe"; } else { $provenance=$HTTP_REFERER; }
$message="\nUne erreur 404 s'est produite sur le site BUGGYSPY.\n\nProvenance : ".$provenance.";
Page intentée : ".$SCRIPT_URI."\nNavigateur : $HTTP_USER_AGENT\nAdresse IP : http://$REMOTE_ADDR\nNom de domaine : ".gethostbyaddr($REMOTE_ADDR)."\n";
@mail($to,$sujet,$message,"FROM:Erreur404");
}
echo ("<p align=\"center\"><font size=\"4\"<strong>Veuillez contacter le webmaster si vous le souhaitez, en cliquant <a href=\"http://www.buggyspy.levillage.org/index.php\"><big>ici</big></a>.</font></p>");
echo ("<p align=\"center\"><font size=\"4\"<strong>ou retourner au site en cliquant <a href=\"http://www.buggyspy.levillage.org/index.php\"><big>ici</big></a>.</font></p>");
//indiquer l'adresse absolue totale http://.../error404.php
echo ("<div align=\"center\"><img
src=\"http://www.buggyspy.levillage.org/images/lajolla550x354.jpg\" alt=\"image\" /><br/></div>");
echo ("<div align=\"center\"><img src=\"http://www.buggyspy.levillage.org/images/errors.jpg\" alt=\"image\" /></div>");
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Erreur 404</title>
<meta name="robots" content="noindex, follow">
</head>
<body>
<p align="center"><font size="5" color="#FF0000"><strong>ERROR 404 IMPOSSIBLE D'AFFICHER LA PAGE
DEMANDEE</strong></font></p>
<p align="center"><font size="2" color="#008000">Un mail a été envoyé au
webmaster afin de corriger si possible cette erreur.</font></p>
<?php
$today = date("d-m-Y");
$time = date("H:i");
echo ("Date $today - $time");
?>
</body>
</html>
url: http://www.buggyspy.levillage.org
mon .htaccess est a la racine du site de meme que mes pages error401 et error404.php
Quelqu'un peut il me donner une idee la dessus?
Message envoyé avec : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4