Forum Moderators: phranque

Message Too Old, No Replies

Redirect to another domain by single ip address

         

xDFuNK

5:00 pm on Jul 2, 2006 (gmt 0)

10+ Year Member



Hi i'm really clueless to this stuff, so if anyone can let me know how to do the following it would be much appreciated. I want to redirect one visitor by ip address to another domain, not letting him view the site. thanks for any help guys.

jdMorgan

8:39 pm on Jul 3, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use a RewriteCond to test the server variable %{REMOTE_ADDRESS}, and then a RewriteRule to redirect all URLs requested by that IP address to the other site.

For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].

Jim

xDFuNK

11:45 pm on Jul 3, 2006 (gmt 0)

10+ Year Member



thanks so much for those links.