Skip to content
Snippets Groups Projects
Commit f95c7e87 authored by Thom's avatar Thom :tools:
Browse files

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

parent acb7db0d
No related branches found
No related tags found
1 merge request!1170Disable http to https redirect when SSL is turned off
......@@ -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);
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment