Return to Snippet

Revision: 33379
at October 8, 2010 07:34 by vagrantradio


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

Initial URL

                                

Initial Description
Redirects to specified page ignoring specified ip address and folders.

Initial Title
htaccess Maintenance Redirect with IP and folder omission

Initial Tags
htaccess

Initial Language
Perl