Posted By

vagrantradio on 10/08/10


Tagged

htaccess


Versions (?)

htaccess Maintenance Redirect with IP and folder omission


 / Published in: Perl
 

Redirects to specified page ignoring specified ip address and folders.

  1. RewriteEngine On
  2. RewriteBase /
  3. RewriteCond %{REMOTE_ADDR} !^00\.000\.00\.000
  4. RewriteCond %{REQUEST_URI} !^/index\.html$
  5. RewriteCond %{REQUEST_URI} !^/path/to/(.*)$
  6. RewriteCond %{REQUEST_URI} !^/path/to/(.*)$
  7. RewriteRule ^(.*)$ http://www.yourdomain.com/index.html [R=307,L]

Report this snippet  

You need to login to post a comment.