Skip to content

Instantly share code, notes, and snippets.

Revisions

  1. a1phanumeric revised this gist Jun 18, 2010. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Redirect all but 1 IP to different site, using mod_rewrite
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REMOTE_HOST} !^00\.00\.00\.00
    RewriteCond %{REMOTE_HOST} !^00\.00\.00\.00 # Put your IP here
    RewriteRule .* http://www.google.com [R=302,L]
  2. @iammart iammart created this gist Jun 18, 2010.
    4 changes: 4 additions & 0 deletions Redirect all but 1 IP to different site, using mod_rewrite
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REMOTE_HOST} !^00\.00\.00\.00
    RewriteRule .* http://www.google.com [R=302,L]