Rewrite for certain IP addresses

Need to redirect all users except for yourself to another site until yours is live?

RewriteCond %{REMOTE_ADDR} !"^64\.39\.0\.38"
RewriteRule .* http://othersite.com/

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Printed from: http://rackerhacker.com/2007/02/08/rewrite-for-certain-ip-addresses/ .
© Major Hayden 2010.

Leave a Reply