Your IP : 216.73.216.68


Current Path : /home/jeromecohp/www/aesecure/premium/setup/snippets/
Upload File :
Current File : /home/jeromecohp/www/aesecure/premium/setup/snippets/19-maintenance.htaccess

#aeSecure 1.9
<IfModule mod_rewrite.c>
 # Uncomment these line to redirect visitors to a "Site is under maintenance" page.
 # Allow your IP adresses; add more if needed
 # Create a few exceptions to allow the webmaster to access to the aeSecure setup page that will allow him
 # to activate/disable the maintenance mode
 # The %AESECURE_USERIP% variable will be replaced by the current IP of the user so
 # the person who'll activated the maintenance mode on his production server won't need to modify the .htaccess
 # file for creating an exception for his own IP.  %AESECURE_USERIP% will do that automatically for him.
 # The files listed below are used by administration interface of aeSecure (depending on the selected option).  
 # There are mentionned here to make sure that that interface will continue to work without problem.
 RewriteEngine On
 RewriteCond %{REMOTE_ADDR} !127.0.0.1 [NC]
 RewriteCond %{REMOTE_ADDR} !localhost [NC]
 RewriteCond %{REMOTE_ADDR} !%AESECURE_USERIP% [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/maintenance.php(.*)$ [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/setup.php(.*)$ [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/((premium|pro)/)?assets/?aesecure\.(css|js|png)(\?.*)?$ [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/assets/loading\.gif$ [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/assets/favicon\.ico$ [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/assets/icomoon/style(\.min)?\.css$ [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/assets/icomoon/fonts/aeSecure\.woff2?(\?.*)?$ [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/libs/devbridge-autocomplete/js/jquery\.autocomplete(\.min)?\.js(\?.*)?$ [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/libs/bootstrap/fonts/glyphicons-halflings-regular\.woff2?(\?.*)?$ [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/libs/bootstrap/js/(additional-methods|bootstrap(-switch)?|jquery(\.validate)?)(\.min)?\.js$ [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/libs/bootstrap/img/glyphicons-halflings-white\.png$ [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/libs/bootstrap/css/bootstrap(-responsive|-switch)?(\.min)?\.css$ [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/libs/textillate/css/animate(\.min)?\.css$ [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/libs/alertify/css/alertify\.(bootstrap|core)(\.min)?\.css$ [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/libs/alertify/js/alertify(\.min)?\.js$ [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/libs/entropizer/css/jquery-entropizer\.min\.css$ [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/libs/entropizer/js/(jquery-)?entropizer(\.min)?\.js(\?.*)?$ [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/libs/tablesorter/css/theme\.ice(\.min)?\.css$ [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/libs/tablesorter/js/jquery\.tablesorter\.combined\.js$ [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/libs/textillate/js/jquery\.lettering(\.min)?\.js$ [NC]
 RewriteCond %{REQUEST_FILENAME} !/%AESECURE_SITEROOT%aesecure/libs/textillate/jquery\.textillate(\.min)?\.js$ [NC]
 RewriteRule .* /%AESECURE_SITEROOT%aesecure/setup.php?m=1 [L,NC,QSA]
</IfModule>