Code : Tout sélectionner
header("Location:http://nouvelleadresse.com/");
Comment provoquer un code 301 et est-il vraiment utile ?
Code : Tout sélectionner
header("Location:http://nouvelleadresse.com/");
Code : Tout sélectionner
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".$url);
header("Connection: close");
301 OKhttp://smilissimo.free.fr/Autohide.php
GET /Autohide.php HTTP/1.1
Host: smilissimo.free.fr
User-Agent: Mozilla/5.0 X11; U; Linux i686; en-US; rv:1.7) Gecko/20040614 Firebird/0.9 (User Agent modifie grace a Firesomething. Telechargez Firefox/0.9 en francais sur http://frenchmozilla.org/)
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: fr-ch,fr;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
HTTP/1.x 301 OK
Date: Tue, 22 Jun 2004 13:12:58 GMT
Server: Apache1.3.29 - ProXad [Jun 9 2004 15:20:12]
Connection: close
X-Powered-By: PHP/4.3.4
Location: http://www.krickelkrackel.de/autohide/autohide.htm
Content-Type: text/html
----------------------------------------------------------
http://www.krickelkrackel.de/autohide/autohide.htm
GET /autohide/autohide.htm HTTP/1.1
...
Code : Tout sélectionner
header("HTTP/1.1 301 Moved Permanently");
Code : Tout sélectionner
RedirectPermanent /Autohide.php http://www.krickelkrackel.de/autohide/autohide.htm
Code : Tout sélectionner
HTTP/1.x 304 Not Modified
Code : Tout sélectionner
header('Moved Permanently', TRUE, 301);
Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 1 invité