diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php
index 82c17a9b107d182ac2d761f04113508e737a3260..f6403b79698e1bdb13dc6900df0805750f5f8782 100644
--- a/server/plugins-available/apache2_plugin.inc.php
+++ b/server/plugins-available/apache2_plugin.inc.php
@@ -1492,9 +1492,7 @@ class apache2_plugin {
 		}
 
 		if($data['new']['ssl'] == 'n') {
-			$tpl->setVar('rewrite_enabled', 0);
-		} else {
-			$tpl->setVar('rewrite_enabled', 1);
+			$tpl->setVar('rewrite_to_https', 'n');
 		}
 
 		//$tpl->setLoop('redirects',$rewrite_rules);