avispasnegras
Newbie
- Nov 24, 2011
- 28
- 0
Ok, the thing is that some site ( let's call it X ) refers to my site ( let's call it Y ). I would like that when the visitor from site X clicks on my link won't go to site Y but to another site I select ( let's call it Z ). So how can I make sure that when someone goes to X doesn't get directed to Y but to Z ?
I've tried to enter this in httaccess but it just blocked my entire site to that page, even if I was just typing the address in the browser:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://sitex.com [NC]
RewriteCond %{HTTP_REFERER} !^http://www.sitex.com [NC]
RewriteRule ^ http://sitez.com/ [L,R]
So the code above just blocked my site to sitez.com
I've tried to enter this in httaccess but it just blocked my entire site to that page, even if I was just typing the address in the browser:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://sitex.com [NC]
RewriteCond %{HTTP_REFERER} !^http://www.sitex.com [NC]
RewriteRule ^ http://sitez.com/ [L,R]
So the code above just blocked my site to sitez.com