Created
June 18, 2010 10:30
-
-
Save iammart/443486 to your computer and use it in GitHub Desktop.
Redirect all but 1 IP to different site, using mod_rewrite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REMOTE_HOST} !^00\.00\.00\.00 | |
RewriteRule .* http://www.google.com [R=302,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_HOST} !^00.00.00.00 // Redirect to new domain, keeping the file/dir path
RewriteRule ^(.*)$ http://www.google.com/$1 [R=302,L]