By using .htacess you can easily redirect your visitors base on what they have been refered
this is a good practice if forexample you have created an adwords campain, rather than providing the specific url each time in your adwords keyword would be a hard job and time consuming
or if you have fake trafic from some specific url that may make your adsense account in danger of closing by invalid clicks
so you can provide a .htaccess rule to make a condition to provide a rule to redirect any traffic from specific website or even an ip address to your own desired page

here is the code you should write in .htaccess

RewriteCond %{HTTP_REFERER} ^http://(www\.)?referer-domain\.com [NC]
RewriteRule (.*)$1 [R=301,L]

the following is redirecting based on the string in the referer

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} yourstring [NC]
RewriteCond %{REQUEST_URI} !^/webpage.html
RewriteRule /*$ [R=302,L]



  1. Then, it’s going to be awfully hard to play one of those more traditional MMOs ever again, isn’t it.

    Local Game – Stop locations in the San Diego area are listed below.
    We want to catch and analyze as many bugs as possible during this stress
    test period, so that we can try to ensure a smooth launch on May 15.


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.