RewriteEngine help needed please?

zurax's picture

He has: 6 posts

Joined: May 2004

Can anyone help me out? I need to block 2 sites from sending me traffic....

This works...
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://www.abc.com/.*$ [NC]
ReWriteRule .* http://www.zurax.com/portal2.php [R,L]

This doesnt...
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://www.abc.com/.*$ [NC] [OR]
RewriteCond %{HTTP_REFERER} ^http://www.123.com/.*$ [NC]
ReWriteRule .* http://www.zurax.com/portal2.php [R,L]

Nor this...
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://www.abc.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} ^http://www.123.com/.*$ [NC]
ReWriteRule .* http://www.zurax.com/portal2.php [R,L]