Update plugin.php

added ^ to rewrite rule so it matches to https as wel.
pull/3285/head
SpaceCabbie 5 years ago committed by GitHub
parent b5dde131a9
commit b4ff07f0cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      plugin/maintenancemode/plugin.php

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

Loading…
Cancel
Save