>Davide wrote:
>You have two way: remove the 'Listen 80' option, basically disabling the
>whole http part, or add a 'RedirectPermanent / https:...' to the default
>http vhost to redirect all the http request to https.
You could also call the following php function at the top of each page
where you want to use SSL:
function redirect_to_https() {
if ($_SERVER['HTTPS']!="on") {
$redirect =
"https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'<https://%22.$_server['http_host'].$_server['request_uri'/>
];
header("Location:$redirect");
}
}
-Lyle