Redirect to maintenance page


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

This code will redirect all requests to a maintenance page


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/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.