Posted By

mariusscheel on 08/03/10


Tagged

redirect htaccess maintenance


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

roli000


Use .htaccessto Redirect to Maintenance Page for Site Updates


 / Published in: CSS
 

URL: http://perishablepress.com/press/2010/05/19/htaccess-redirect-maintenance-page-site-updates/

  1. # MAINTENANCE-PAGE REDIRECT
  2. RewriteEngine on
  3. RewriteCond %{REMOTE_ADDR} !^123\.456\.789\.000
  4. RewriteCond %{REQUEST_URI} !/maintenance.html$ [NC]
  5. RewriteRule .* /maintenance.html [R=302,L]

Report this snippet  

You need to login to post a comment.