Forum Moderators: phranque
RewriteEngine On
AuthType Basic
AuthUserFile /work/protect/.htpasswd
AuthName "PROTECTED"
require valid-user
satisfy any
# If it's user 'x', do this
#Redirect /work/protect/ [google.com...]
#if it user 'y', do this
#Redirect /work/protect/ [yahoo.com...]
<Limit GET>
order deny,allow
deny from all
</Limit>
Welcome to WebmasterWorld!
See Apache mod_rewrite [httpd.apache.org], and specifically the RewriteCond directive.
RewriteCond %{REMOTE_USER} ^user_Y$
Jim