Commit f0cc342e authored by Thom's avatar Thom 🛠

Only disable HTTPS redirect when SSL is turned off (#4325)

parent f95c7e87
...@@ -1492,9 +1492,7 @@ class apache2_plugin { ...@@ -1492,9 +1492,7 @@ class apache2_plugin {
} }
if($data['new']['ssl'] == 'n') { if($data['new']['ssl'] == 'n') {
$tpl->setVar('rewrite_enabled', 0); $tpl->setVar('rewrite_to_https', 'n');
} else {
$tpl->setVar('rewrite_enabled', 1);
} }
//$tpl->setLoop('redirects',$rewrite_rules); //$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