Re: force https

From: Date: Wed, 29 Jun 2005 03:26:10 +0000
Subject: Re: force https
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-217791@lists.php.net to get a copy of this message
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 would work for an HTTPS referral - however, I don't know why it wouldn't Give it a shot, and if nothing else, let *me* know, even if it's off-list. Thanks -dant

« previous php.general (#217791) next »