Re: [PHP] force https

2005-06-28 Thread Robert Cummings
On Wed, 2005-06-29 at 00:44, Jasper Bryant-Greene wrote: > > Robert Cummings wrote: > >> On Tue, 2005-06-28 at 23:26, Dan Trainor wrote: > >>> > >>> > >>> header('Location: https://mydomain.com'); ? > >>> > >>> > >>> > >> > >> It'll work fine, but here's a something a little more generic :) >

Re: [PHP] force https

2005-06-28 Thread Jasper Bryant-Greene
> Robert Cummings wrote: >> On Tue, 2005-06-28 at 23:26, Dan Trainor wrote: >>> >>> >>> header('Location: https://mydomain.com'); ? >>> >>> >>> >> >> It'll work fine, but here's a something a little more generic :) >> >> header( 'Location: >> https://'.$_SERVER['SERVER_NAME'].$_SERVER['REQU

Re: [PHP] force https

2005-06-28 Thread Dan Trainor
Robert Cummings wrote: > On Tue, 2005-06-28 at 23:26, Dan Trainor wrote: > >>Ross wrote: >> >>>Hi, >>> >>>I need to force the url from http://mydomain.com to https://mydomain.com, so >>>my ssl is active. Anyway this can be done with php? > > >> >> >>header('Location: https://mydomain.com'); ? >

Re: [PHP] force https

2005-06-28 Thread Robert Cummings
On Tue, 2005-06-28 at 23:26, Dan Trainor wrote: > Ross wrote: > > Hi, > > > > I need to force the url from http://mydomain.com to https://mydomain.com, > > so > > my ssl is active. Anyway this can be done with php? > > > header('Location: https://mydomain.com'); ? > > > > I don't know if t

Re: [PHP] force https

2005-06-28 Thread Dan Trainor
Ross wrote: > Hi, > > I need to force the url from http://mydomain.com to https://mydomain.com, so > my ssl is active. Anyway this can be done with php? > > > R. > header('Location: https://mydomain.com'); ? I don't know if that would work for an HTTPS referral - however, I don't know w