Commit f95c7e87 authored by Thom's avatar Thom 🛠

Disable http to https redirect when SSL is turned off (#4325)

parent acb7db0d
......@@ -1491,6 +1491,12 @@ class apache2_plugin {
$tpl->setVar('rewrite_enabled', 0);
}
if($data['new']['ssl'] == 'n') {
$tpl->setVar('rewrite_enabled', 0);
} else {
$tpl->setVar('rewrite_enabled', 1);
}
//$tpl->setLoop('redirects',$rewrite_rules);
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment