Re: redirecting, so to speak
| From: | Jean-Christian Imbeault | Date: | Wed, 23 Apr 2003 02:38:26 +0000 |
| Subject: | Re: redirecting, so to speak | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144944@lists.php.net to get a copy of this message | ||
David T-G wrote:
The problem, of course, is that connecting to https://*.domain.tld will point me to the "default" (first defined) page instead of the site's actual page.Just because someone is connecting to https://*.domain.tld doesn't mean that they have successfully logged in .... So the answer to your question is probably not to check if they are connected via HTTP or HTTPS but whether or not they have successfully logged in or not. In your login script if the login is successful, then redirect them to what page you want using HTTPS (i.e. header("Location: https://*.domain.tld/login.html") HTH, Jean-Christian Imbeault