Skip to content

Commit f95c7e8

Browse files
author
thom
committed
Disable http to https redirect when SSL is turned off (#4325)
1 parent acb7db0 commit f95c7e8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,12 @@ function update($event_name, $data) {
14911491
$tpl->setVar('rewrite_enabled', 0);
14921492
}
14931493

1494+
if($data['new']['ssl'] == 'n') {
1495+
$tpl->setVar('rewrite_enabled', 0);
1496+
} else {
1497+
$tpl->setVar('rewrite_enabled', 1);
1498+
}
1499+
14941500
//$tpl->setLoop('redirects',$rewrite_rules);
14951501

14961502
/**

0 commit comments

Comments
 (0)