> -----Original Message----- > From: Ed Lazor [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 03, 2004 2:33 PM > To: 'Bing Du' > Subject: RE: [PHP] Location header does not work? > > I tried the https address and it lagged badly on me as well. It did > eventually display, so I looked at the source and found that you're mixing > http and https references. That slows things down. There are also > references to unavailable images. For example: > > http://computing.eng.iastate.edu/mambo/components/com_akocomment/images/co > mment.png > > > The redirection limit means you're creating a referal loop. > > If (!IsSet($_SERVER["HTTPS"])) > Header("Location: https://" . $_SERVER["HTTP_HOST"] . > $_SERVER["REQUEST_URI"]); > > > > > -----Original Message----- > > From: Bing Du [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, August 03, 2004 2:23 PM > > To: Ed Lazor > > Subject: RE: [PHP] Location header does not work? > > > > Hi Ed, I just put other things I was doing aside and tried what you > > suggested. But I did not see much difference. I tried both IE 6 and > > Netscape 7.1. In IE, it seemed to take forever to load. Finally it > > returned back with 'The page can not be displayed'. In Netscape, I > still > > got the same message which is 'Redirection limit for this URL exceeded. > > Unable to load the requested page. This may be caused by cookies that > are > > blocked.' Any other ideas? > > > > Thanks so much for taking time to help! > > > > Bing > > > > > Bing, did you try the solution I sent? > > > > > > > > >> -----Original Message----- > > >> From: Bing Du [mailto:[EMAIL PROTECTED] > > >> Sent: Tuesday, August 03, 2004 1:34 PM > > >> To: [EMAIL PROTECTED] > > >> Subject: Re: [PHP] Location header does not work? > > >> > > >> The latest message I got was 'Redirection limit for this URL > exceeded. > > >> Unable to load the requested page.This may be caused by cookies that > > are > > >> blocked.'. > > >> > > >> Bing > > >> > > >> > 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