You simply create a custom tag:
NAME : ssl
Content:
Code: Select all
{
// Check if accessed via SSL
if($_SERVER['HTTPS'] != 'on')
{
// If not, redirect
$newurl = 'https://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
header("location: $newurl");
}
}
Code: Select all
{ssl}
Simple fix, no .htaccess issues clean
Enjoy!
