.Htaccess redirect help

Discussion in 'Cloaking and Content Generators' started by raz777, Jun 26, 2008.

  1. raz777

    raz777 Regular Member

    Joined:
    Feb 24, 2008
    Messages:
    292
    Likes Received:
    121
    Location:
    in the Bathroom
    Hi , i need some help on this:

    1. im cloacking my affiliate url through .Hatccess redirect ,
    my problem is that i dont know which php snippet of code i
    need to add to my affiliate hop to track the converting keywords.
    i know the /?tid=xxx but i need something dynamic.
    im working now with this simple code on the .Hatccess file:

    redirect 301 /xxx.htm http://affilliate.vendor.hop.cli**ck**ba*nk.net/?tid=

    Thanks
     
  2. da buck

    da buck Regular Member

    Joined:
    Feb 24, 2008
    Messages:
    317
    Likes Received:
    116
    Location:
    Ohio
    I have been having problems with this too. This is the code I have been using but it hasn't been working
    Code:
    RewriteEngine On
    RewriteRule Redirect http://www.mysite.com/pic/pic.jpg http://affiliate.com [R,L]
     
  3. oldenstylehats

    oldenstylehats Elite Member Premium Member

    Joined:
    Apr 10, 2008
    Messages:
    1,892
    Likes Received:
    1,196
    Try this:
    Code:
    RewriteEngine On
    RewriteRule IMAGE-TO-STUFF.jpg http://www.affiliatelink.com/ [R,L] 
    
     
  4. da buck

    da buck Regular Member

    Joined:
    Feb 24, 2008
    Messages:
    317
    Likes Received:
    116
    Location:
    Ohio
    That could be the problem. It has been driving me crazy because I'm not much of a coder.
     
  5. raz777

    raz777 Regular Member

    Joined:
    Feb 24, 2008
    Messages:
    292
    Likes Received:
    121
    Location:
    in the Bathroom
    thanks, but im not talking about cookie st*uff
    i want to cloack my links and at the same time to pass the clickbank TID
    so i can see which keyword made a sale.
    if i put this line on the .htaccess :

    redirect 301 /xxx.htm http://affilliate.vendor.hop.cli**ck**ba*nk.net/?tid=1

    on my site i link to : mysite.com/xxx.htm
    when the visitor click he will redirect to the vendor site with my hop and if he
    buy i will see the TID no 1 on clickbank.

    this is perfect solution for me, but i need a dynamic code that will catch all my keywords id's.
     
  6. nicksor

    nicksor BANNED BANNED

    Joined:
    May 19, 2008
    Messages:
    75
    Likes Received:
    7
    why not search g00gle: mod_rewrite pass query_string ? :)