2014-12-20, 04:37:32
Today i found a website with a nice aproach for putting a complete site in maintenance mode by using the .htaccess file.
http://perishablepress.com/htaccess-redi...e-updates/
It would be nice, if this could be added in the admin panel.
Options i suggest:
- Custom page/template for maintenance / local html file
- Interface for addind the 'bypass/admin' ip's
my 2 cents...
http://perishablepress.com/htaccess-redi...e-updates/
Quote:# MAINTENANCE-PAGE REDIRECT
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^123\.456\.789\.000
RewriteCond %{REQUEST_URI} !/maintenance.html$ [NC]
RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC]
RewriteRule .* /maintenance.html [R=302,L]
</IfModule>
It would be nice, if this could be added in the admin panel.
Options i suggest:
- Custom page/template for maintenance / local html file
- Interface for addind the 'bypass/admin' ip's
my 2 cents...