added ^ to rewrite rule so it matches to https as wel.
@ -125,7 +125,7 @@ if ($editFile && $isPlatformAdmin) {
$default = '
RewriteCond %{REQUEST_URI} !'.$append.'/maintenance.html$
RewriteCond %{REMOTE_ADDR} !^'.$implode.'
RewriteRule \.*$ '.$append.'/maintenance.html [R=302,L]
RewriteRule ^\.*$ '.$append.'/maintenance.html [R=302,L]
';
if (empty($block)) {
$block = $default;