Skip to content

Commit

Permalink
Update plugin.php
Browse files Browse the repository at this point in the history
added ^ to rewrite rule so it matches to https as wel.
  • Loading branch information
spacecabbie committed Jun 7, 2020
1 parent b5dde13 commit b4ff07f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/maintenancemode/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
$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;
Expand Down

0 comments on commit b4ff07f

Please sign in to comment.