diff --git a/plugin/edit_htaccess/plugin.php b/plugin/edit_htaccess/plugin.php index 1a5fc38c89..34250e05be 100644 --- a/plugin/edit_htaccess/plugin.php +++ b/plugin/edit_htaccess/plugin.php @@ -104,10 +104,11 @@ if ($editFile && api_is_platform_admin()) { $ipSubList = explode('.', $ip); $implode = implode('\.', $ipSubList); $append = api_get_configuration_value('url_append'); + $default = ' -RewriteCond %{REQUEST_URI} !/'.$append.'/maintenance.html$ +RewriteCond %{REQUEST_URI} !'.$append.'/maintenance.html$ RewriteCond %{REMOTE_HOST} !^'.$implode.' -RewriteRule $ /'.$append.'/maintenance.html [R=302,L] +RewriteRule \.*$ '.$append.'/maintenance.html [R=302,L] '; if (empty($block)) { $block = $default;