Oops... forgot to add https

Header("Location:  https://"; . $_SERVER['HTTP_HOST'] .
$_SERVER['REQUEST_URI']);



> -----Original Message-----
> From: Ed Lazor [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 03, 2004 1:36 PM
> To: 'John Nichel'; 'Bing Du'; '[EMAIL PROTECTED]'
> Subject: RE: [PHP] Location header does not work?
> 
> header("Location: " . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
> 
> 
> > -----Original Message-----
> > From: John Nichel [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, August 03, 2004 12:59 PM
> > To: Bing Du; [EMAIL PROTECTED]
> > Subject: Re: [PHP] Location header does not work?
> >
> > On Tuesday 03 August 2004 15:41, Bing Du offered up the following tid-
> bit
> > of
> > information :
> > > I've been struggling with this redirect thing for a while but still
> > > cannot get it work.  I'm desperately needing help, please.
> > >
> > > What I want to do is redirect
> > >
> >
> http://computing.eng.iastate.edu/mambo/index.php?option=content&task=view
> > >&id=159&Itemid=162 to
> > >
> >
> https://computing.eng.iastate.edu/mambo/index.php?option=content&task=vie
> > >w&id=159&Itemid=162. The only difference between the above two URLs is
> > one
> > > is http and the other is https.
> > >
> > > ==========
> > > if ($option == 'content' and $task == 'view' and $id == 159 and
> $Itemid
> > > == 162)
> > > {
> > >   session_write_close();
> > >   header("Location:
> > >
> >
> https://computing.eng.iastate.edu/mambo/index.php?option=content&task=vie
> > >w&id=159&Itemid=162"); exit;
> > > }
> > > ==========
> > >
> > > Am I doing anything wrong with the Location header?
> >
> > What's the error?  Is it just not forwarding?  Headers already sent?
> >
> > --
> > John C. Nichel
> > ÜberGeek
> > KegWorks.com
> > 716.856.9675
> > [EMAIL PROTECTED]
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to