How to send user to other site via htaccess on DENY

Posted by iamdadude on Stack Overflow See other posts from Stack Overflow or by iamdadude
Published on 2010-05-22T22:52:03Z Indexed on 2010/05/22 23:00 UTC
Read the original article Hit count: 201

Filed under:
|

I only want to allow one IP to access this site and want to send all the other users to google.com. How would I go about doing this? I have this at the moment -

AuthName "bla"  
AuthType Basic  
<LIMIT GET POST>  
ORDER DENY,ALLOW
DENY FROM ALL
ALLOW FROM #IP  
</LIMIT>  

© Stack Overflow or respective owner

Related posts about apache

Related posts about .htaccess