Skip to content

Commit f0cc342

Browse files
author
thom
committed
Only disable HTTPS redirect when SSL is turned off (#4325)
1 parent f95c7e8 commit f0cc342

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,9 +1492,7 @@ function update($event_name, $data) {
14921492
}
14931493

14941494
if($data['new']['ssl'] == 'n') {
1495-
$tpl->setVar('rewrite_enabled', 0);
1496-
} else {
1497-
$tpl->setVar('rewrite_enabled', 1);
1495+
$tpl->setVar('rewrite_to_https', 'n');
14981496
}
14991497

15001498
//$tpl->setLoop('redirects',$rewrite_rules);

0 commit comments

Comments
 (0)