ragazzi mi serve di inviare un header 301, quindi anche location.
però php.net dice che location invia autoamticamente un header 302...
come faccio?
![]()
ragazzi mi serve di inviare un header 301, quindi anche location.
però php.net dice che location invia autoamticamente un header 302...
come faccio?
![]()
Originariamente inviato da xnavigator
ragazzi mi serve di inviare un header 301, quindi anche location.
però php.net dice che location invia autoamticamente un header 302...
come faccio?
![]()
risolto grazie![]()
Ciao,
prova
header("HTTP/1.0 301 Moved Permanently");
Però l'rfc dice
301 Moved Permanently
The requested resource has been assigned a new permanent URL and
any future references to this resource should be done using that
URL. Clients with link editing capabilities should automatically
relink references to the Request-URI to the new reference returned
by the server, where possible.
The new URL must be given by the Location field in the response.
Unless it was a HEAD request, the Entity-Body of the response
should contain a short note with a hyperlink to the new URL.
If the 301 status code is received in response to a request using
the POST method, the user agent must not automatically redirect the
request unless it can be confirmed by the user, since this might
change the conditions under which the request was issued.
Quindi non so come potresti concretamente applicare la terza ipotesi (POST)
Meglio se riesci a far fare la cosa ad Apache, immagino sia possibile ma non ho mai provato
per favore NIENTE PVT TECNICI da sconosciuti
Come hai risolto?
per favore NIENTE PVT TECNICI da sconosciuti