Re: redirecting with header(Location:blah

From: Daniel Tryba (news_comp.lang.php_at_canopus.nl)
Date: 01/26/04


Date: Mon, 26 Jan 2004 22:46:16 +0000 (UTC)

Jeff <jeff_battle@yahoo.com> wrote:
> When I issue a "header(Location:/myscript.php?key1=value1&key2=value2);"
> the redirect happens just fine but the url in the address field keeps
> the previous url instead of the url I passed in the header call.
>
> This seems to happen only with I.E. Netscape does update the url
> correctly.
> I've also noticed that if I include the full path
> (location:http//blah) it works.

Relative location URLs are not defined by the HTTP/1.1 rfc, so the
results in browsers are undefined... use absolute urls instead.

-- 
  Daniel Tryba


Relevant Pages

  • Re: Replying to messages forwarded (not redirected) by rule
    ... sender or CC's, just their names. ... When we tried "redirect", I could hit ... Jeff, for your posts. ... > What sort of account is it - Exchange? ...
    (microsoft.public.outlook.general)
  • SUMMARY:ICMP redirects "time-to-live"
    ... Thanks to Jeff Hummel and Fred VanKemper from this list, and Al Lycos from HP support. ... route add default defaultgatewayaddress ... I also learned from HP that there is no timeout value associated with an ICMP redirect route entry in the route table. ...
    (Tru64-UNIX-Managers)
  • Re: php and session issues continued...
    ... "Be aware of the fact that absolute URLs are NOT automatically ... rewritten to contain the SID." ... form are not being passed into the session. ... ensure the session data is written out before the redirect, ...
    (php.general)
  • Re: SBS 2003 Port redirects
    ... Jeff ... "Franz Leu" wrote: ... > If you want to use RWW you need to redirect 4125 as well. ...
    (microsoft.public.windows.server.sbs)
  • Re: My Documents Redirection question
    ... My goal is to redirect My Documents using a variable. ... had a feeling I needed to use a UNC path so I'm going to ... >Hi Jeff, ... it spits out the message stating the ...
    (microsoft.public.win2000.active_directory)