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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to