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.
Redirect URL except GoogleBot? Please Help!
7
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 http://www.myblog.com/post-url/ http://www.myafflink.com/ [R=301,L]
Please help.
RewriteCond %{HTTP_USER_AGENT} ^((?!google).)*$
RewriteRule http://www.myblog.com/post-url/ http://www.myafflink.com/ [R=301,L]
Please help.
- raggupta2
- mojojuju
- frankweerasinghe
- taiavatar
- JezWebb
- [ 1 ] Thanks
- [1] reply
- frankweerasinghe
Next Topics on Trending Feed
-
7