Use .htaccessto Redirect to Maintenance Page for Site Updates


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  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]

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.