ugrás a tartalomhoz

302 Moved Temporarily

eMeLA · 2006. Aug. 23. (Sze), 15.15
Van egy általam készített és karbantartott Drupál oldal.

A tárhelyszolgáltató oldalstatisztikájában felfigyeltem az egyre szaporódó
302 Moved Temporarily hibaüzenetre (?).

Nem sikerült igazán - az interneten böngészve - kiderítenem mi is okozza ezt a hibaüzenetet.

A Weblabor "Barátságos hibaüzenetek - 404" cikkében is csak ez van:
A 301 és 302 kódok közötti különbség, hogy a 302 esetében később a tartalom ismét megtalálható lesz az adott URL-n, de a 301 esetében már nem.

Ez azt jelenti, hogy olyan link mutat az oldal egyes részére, ami később megkerül ?

Mi okozza ezt, a szolgáltató, a forráskód, vagy a belépők linkje (pl. keresőkből) !?

Hol keressem a hibát !?
 
1

php header location-ja is ilyet dob

toxin · 2006. Aug. 23. (Sze), 18.14
302 Found
A 302 Found response is similar to the 301 Moved Permanently response, except that the new location should only be used for this request. The new resource location is indicated in a Location header, and the client should issue the same request method for the new resource as it used for the request that resulted in this response.

Note

Nearly all known Web clients do not adhere correctly to the HTTP definition with regard to this response code. Regardless of which request method is used in the initial HTTP request, the request method used to fetch the resource in its new location is GET. To allow for a status code that explicitly intends for this behavior, the HTTP/1.1 definition includes the 303 See Other status code, which specifies that a GET request method must be used for the resource in its new location. Thus, in practice, both 302 Found and 303 See Other are handled in the same manner. Because some older Web clients do not understand the 303 See Other status code, most current implementations of protocol-level redirection in which a GET request is desired rely on the 302 Found status code.



This response is what many server-side scripting languages such as PHP and ColdFusion currently use when a developer manually uses a Location header in the code (although discussion is underway for PHP to allow the developer to override the response status code). For example:

<?
header("Location: http://httphandbook.org/");
?>
This will result in a response similar to the following:

HTTP/1.1 302 Found
Date: Tue, 21 May 2002 12:34:56 GMT
Location: http://httphandbook.org/
Transfer-Encoding: chunked
Content-Type: text/html

0


idézet :

HTTP Developer's Handbook
By Chris Shiflett

Publisher : Sams Publishing
Pub Date : March 21, 2003
ISBN : 0-672-32454-7

-ből , remélem segítettem bár még csak most tanulom ezeket

üdv t
2

A Drupalban

vbence · 2006. Aug. 23. (Sze), 22.52
A te esetedben valószínűleg a drupal beépített mechanizmusa használja ezt a kódot, például rövid url-ek kezelésére, vagy permalinkekre. Ha belenézel a forrásba biztos megtalálod.

Ja, és ki mondta, hogy hibáról van szó? A 3xx általában nem hibára utal.