PHP jump to other page

stude.list at googlemail.com stude.list at googlemail.com
Wed Oct 4 18:48:25 UTC 2006


Hi

On 04/10/06, Bikram विक्रम <bikram99 at gmail.com> wrote:
>  header("Location: index2.php")

Although this may work on most browsers, I don't think it is in the
HTTP1.1 standard.

RFC2616[1] (14.30 Location) states that the Location header is defined as:
Location       = "Location" ":" absoluteURI

Note: it should be an absoluteURI your redirecting to, and NOT a relative one.

-- Andy

[1] http://www.faqs.org/rfcs/rfc2616


More information about the ubuntu-users mailing list