tj
09-06-06, 09:09 PM
I get first post in this forum! :P
Ok well I hope some of you will find this useful!
Its a line of php that will redirect the users browser to the SSL'd version of your WHM system.
If a user types the url of your system directly as:
http://billing.webhost.com, nothing exchanged between the system and the user is encrypted leaving the information exposed.
With the code below
{php}
/* redirect to secure site ALWAYS?? */
if ($_SERVER["SERVER_PORT"] != 443)
{
header('Location: https://billing.webhost.com/index.php');
}
{/php}
If a user where to type http://billing.webhost.com he/she will be redirected to https://billing.webhost.com.
Just paste that in at the top of your header.tpl file.
And dont forget to change the https://billing.webhost.com/index.php to your url!
Just my two cents :)
Ok well I hope some of you will find this useful!
Its a line of php that will redirect the users browser to the SSL'd version of your WHM system.
If a user types the url of your system directly as:
http://billing.webhost.com, nothing exchanged between the system and the user is encrypted leaving the information exposed.
With the code below
{php}
/* redirect to secure site ALWAYS?? */
if ($_SERVER["SERVER_PORT"] != 443)
{
header('Location: https://billing.webhost.com/index.php');
}
{/php}
If a user where to type http://billing.webhost.com he/she will be redirected to https://billing.webhost.com.
Just paste that in at the top of your header.tpl file.
And dont forget to change the https://billing.webhost.com/index.php to your url!
Just my two cents :)