PDA

View Full Version : htaccess question


franko2
03-03-2002, 05:17 PM
how could i configure htaccess so that all users from yahoo.com would be redirected to another html. EX: <a href="http://mydomain.com/mypage.html" target="_blank">http://mydomain.com/mypage.html</a><br />yahoo.com going to THAT page would be redirected to <a href="http://mydomain.com/yahoo.html" target="_blank">http://mydomain.com/yahoo.html</a> BUT yahoo.com going to <a href="http://mydomain.com/anotherpage.htm" target="_blank">http://mydomain.com/anotherpage.htm</a> wouldnt be redirected.<br />Thanks

DialerEntertainment
03-03-2002, 05:51 PM
Give this a try..<br /><br />RewriteCond %{HTTP_REFERER} ^http://.*adfilter.com.*$ [OR]<br />RewriteRule /* <a href="http://www.redirectdomain.com/ad.html" target="_blank">http://www.redirectdomain.com/ad.html</a> [R,L]