This code-----
$ssl_port = "443";
if($_SERVER['SERVER_PORT'] != $ssl_port) {
header("Location: [url]https://[/url]".$SERVER['HTTP_HOST']."/".$SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING']);
exit;
Should lool like this
$ssl_port = "443";
if($_SERVER['SERVER_PORT'] != $ssl_port) {
header("Location: [url]https://[/url]".$SERVER['HTTP_HOST'].$SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING']);
exit;
the change is--> $SERVER['HTTP_HOST'].$SERVER
The orignal code would cause errors when you liked off of it.
Good Luck..