[PHP] force https

2005-06-28 Thread Ross
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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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. i'm a newbie, you've been warned header('Location: https://mydomain.com'); ? /i'm a newbie, you've been warned I don't know if that

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? i'm a newbie, you've been warned header('Location: https://mydomain.com'); ? /i'm a

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? i'm a newbie, you've been warned header('Location:

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: i'm a newbie, you've been warned header('Location: https://mydomain.com'); ? /i'm a newbie, you've been warned It'll work fine, but here's a something a little more generic :) header( 'Location:

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: i'm a newbie, you've been warned header('Location: https://mydomain.com'); ? /i'm a newbie, you've been warned It'll work fine, but here's a