Re: 301 Redirect problem on Apache 2.0.50

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2009-01-06 at 08:12 -0700, Corey Shaw wrote:
> Edd,
> 
> 
>    What you're attempting to do is possible using PHP.  The "header()"
> function allows you to accomplish what you're trying to do.  The
> definition is
> at http://us2.php.net/manual/en/function.header.php. Putting
> "header('Location: location_to_go_to')" will redirect to wherever you
> point as long as you put it in the script before any HTTP headers are
> sent.  It can also use relative paths.
> 
> 
> Corey
> 


Relative paths in a Location header? Not according to RFC 2616:


14.30 Location
The Location response-header field is used to redirect the recipient to
a location other than the Request-URI for completion of the request or
identification of a new resource. For 201 (Created) responses, the
Location is that of the new resource which was created by the request.
For 3xx responses, the location SHOULD indicate the server's preferred
URI for automatic redirection to the resource. The field value consists
of a single absolute URI.

Location       = "Location" ":" absoluteURI


Just because you tried something, and it worked in the two browsers you
tested on a single platform, does not make it a universal truth.

Tom


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux