Bonjour,
Aujourd'hui, je fais un tour d'horizon de mon back pour m'assurer qu'on ne puisse pas y entrer si facilement que ça..
donc j'ai un index.php dans tous mes répertoires, dans lesquels j'ai mis ceci
Par contre, l'entête retournée est celle-ci :
comment faire ?
merci de votre aide.
Aujourd'hui, je fais un tour d'horizon de mon back pour m'assurer qu'on ne puisse pas y entrer si facilement que ça..
donc j'ai un index.php dans tous mes répertoires, dans lesquels j'ai mis ceci
Code:
<?php
header("HTTP/1.1 404 Not found");
header("Status: 404 Not found");
header('location: http://www.monsite.com');
?>
Par contre, l'entête retournée est celle-ci :
on est bien avancés : j'aimerais pas que ça me renvoie exactement la même 404 que pour les dossiers qui n'existent vraiment pas, that's to say :HTTP/1.1 302 Found
Date: Tue, 26 Jun 2007 13:07:06 GMT
Server: Apache/1.3.37 (Unix) mod_gzip/1.3.19.1a PHP/5.2.3 mod_ssl/2.8.28 OpenSSL/0.9.6m
X-Powered-By: PHP/5.2.3
Status: 404 Not found
location: http://www.monsite.com
Connection: close
Content-Type: text/html
HTTP/1.1 404 Not Found
Date: Tue, 26 Jun 2007 13:14:20 GMT
Server: Apache/1.3.37 (Unix) mod_gzip/1.3.19.1a PHP/5.2.3 mod_ssl/2.8.28 OpenSSL/0.9.6m
X-Powered-By: PHP/5.2.3
Status: 404 Not Found
Set-Cookie: PHPSESSID=34146cc0ad535f4db96f1822e94f7f6c; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html
comment faire ?
merci de votre aide.