How do I mask affiliate links like a pro?

Discussion in 'WordPress' started by thenetfool, Feb 22, 2008.

  1. #1
    Hey DP'ers,

    I have really been looking hard as to how I can mask those pesky affiliate links on my blog site.
    I have seen tools like WP Affiliate Pro, but all this does is make a link like: "domain.com/affiliate.php?z=1" ... which is really messy

    I have seen most professional blogs linking to affiliates with links looking like: "http://www.domain.com/go/website.php"
    How do I make my links look like this? :confused:

    Any help is greatly appreciated, thanks.
    -Jim
     
    thenetfool, Feb 22, 2008 IP
  2. Crynos

    Crynos Peon

    Messages:
    733
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Crynos, Feb 22, 2008 IP
  3. Felu

    Felu Peon

    Messages:
    1,680
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You could edit do it manually by making a php file and using php redirect function.

    Or you could make the task a lot easier by getting PowerLinkGenerator. It even lets you track hits and conversion rate. I've been using it for long and its really awesome. Highly recommend for any affiliate marketer to have.
     
    Felu, Feb 22, 2008 IP
  4. arwen54

    arwen54 Active Member

    Messages:
    632
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    60
    #4
    arwen54, Feb 22, 2008 IP
  5. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #5
    Richie_Ni, Feb 22, 2008 IP
  6. thenetfool

    thenetfool Active Member

    Messages:
    218
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #6
    Thanks for the replies.

    Unfortunately, none of these are really what I am looking for. It seems like they are all just short-url scripts and thats really not what I am looking for.
    If anybody knows how to get the /go/file.php format of redirecting please let me hear. Thanks for the help :)
     
    thenetfool, Feb 23, 2008 IP
  7. thenetfool

    thenetfool Active Member

    Messages:
    218
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #7
    I think I am just going to do this manually by creating some php redirect scripts.
    Thanks for all the help users
     
    thenetfool, Feb 23, 2008 IP
  8. Felu

    Felu Peon

    Messages:
    1,680
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    0
    #8
    With PowerLinkGenerator you can create stuff like /go/file.php. It won't create a php file, but would just make use of .htaccess. But with it you can even track stuff which you can't when redirecting manually unless you use a tracking script.
     
    Felu, Feb 23, 2008 IP
  9. meetbro

    meetbro Banned

    Messages:
    911
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I often use javascript hide over. :)
     
    meetbro, Feb 23, 2008 IP
  10. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #10
    Hmm,didn't you see my post?

    You'll just need to create another folder/directory named go and put a htaccess file there,that's the trick ...
     
    Richie_Ni, Feb 23, 2008 IP
  11. shadow_boi

    shadow_boi Peon

    Messages:
    374
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    i dont quite get it.
    so I have edit the htaccess file every time whenever I have a new AffiliateUrl?
     
    shadow_boi, Feb 23, 2008 IP
  12. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #12
    yeah of course,you have to...and it'll just take a few sec's to add a new affiliate url..however i think you don't join a new aff. program everyday,eh?
     
    Richie_Ni, Feb 23, 2008 IP
  13. Boardwalk

    Boardwalk Well-Known Member

    Messages:
    1,651
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    140
    #13
    
    <?php
    header( 'Location: [COLOR="Red"]insert affiliate link here[/COLOR]' );
    ?>
    Code (markup):
    Save the file as affiliate.php on your preferred folder. If you saved it on the folder "/go", you may access it through yourdomain.tld/go/affiliate.php

    :D

    Hope it helped! To the others who want to know more methods to mask affiliate links, check my post here.

    ~BW
     
    Boardwalk, Feb 24, 2008 IP
  14. JWRmedia

    JWRmedia Banned

    Messages:
    499
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #14
    JWRmedia, Mar 19, 2008 IP
  15. fish

    fish Well-Known Member

    Messages:
    450
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #15
    Try using this...can be used for redirecting pretty much anything in WP.

    http://urbangiraffe.com/plugins/redirection/

    I use it myself, really easy to use. Not just for affiliate links but redirecting old permalinks to new ones, etc.
     
    fish, Mar 19, 2008 IP
  16. Queen Bufu

    Queen Bufu Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Thanks, Fish! I was following this thread but wasn't about to start messing with my htaccess file for each link.

    I didn't even think of using the Redirection plugin I have already installed. This seems like the simplest way to accomplish affiliate cloaking for those of who don't like to play with code "under the hood".
     
    Queen Bufu, Mar 19, 2008 IP