1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Redirect URL except GoogleBot? Please Help!

Discussion in 'Black Hat SEO' started by frankweerasinghe, Jun 10, 2012.

  1. frankweerasinghe

    frankweerasinghe Regular Member

    Joined:
    Jun 6, 2011
    Messages:
    434
    Likes Received:
    393
    Location:
    Colombo, Sri Lanka
    I have a highly rank post on my blog and I just wanna redirect it to my clickbank affiliate link without losing my rankings. So I need to do this with htaccess file. First it must check the USER AGENT... then it must check is there any "google" word on that user agent string. If not, it should redirect user to my aff. link. So far I tried following code without any success.


    RewriteCond %{HTTP_USER_AGENT} ^((?!google).)*$
    RewriteRule PostURL MyAffLink [R=301,L]

    Please help.
     
  2. frankweerasinghe

    frankweerasinghe Regular Member

    Joined:
    Jun 6, 2011
    Messages:
    434
    Likes Received:
    393
    Location:
    Colombo, Sri Lanka
    anyone????