Posted By

zac on 03/12/11


Tagged

redirect maintenance


Versions (?)

Maintenance mode with .htaccess


 / Published in: Apache
 

  1. Options +FollowSymlinks
  2. RewriteEngine on
  3. # exclude maintenance page
  4. RewriteCond %{REQUEST_URI} !/maintenance.php$
  5. # enter ip to allow access
  6. RewriteCond %{REMOTE_HOST} !^11\.11\.11\.11
  7. # exclude files from rewrite
  8. RewriteCond %{REQUEST_URI} !/css/(.*)$
  9. RewriteCond %{REQUEST_URI} !/images/(.*)$
  10. #maintenance page
  11. RewriteRule $ /maintenance.php [R=302,L]

Report this snippet  

You need to login to post a comment.