Results 1 to 14 of 14
  1. #1
    Tigerboy's Avatar
    Tigerboy is offline Private Member
    Join Date
    May 2009
    Location
    Romania
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default redirect affiliates links!

    I read and read and read about this issue for three days and no answer until now...
    I want to redirect my external affiliates link. So...i try to understand the methods. I understand that the best methods are with php script and with .htaccess. I tried with php...i took that code i make a new php document. Then i try to redirect with that php document. But no result...So i have a question: should i have all my documents in php? Not in html? Please if someone can explain in detail about this proccess. On the web i only find the code but no words about how to make.
    That's the first method that i try.
    Then the method with .htaccess. This method i didn't try because i didn't understand so much.
    What method is good? How to implement?
    Thanks in advance!
    Sorry for my english hope to understand!
    Working...and working...and working to list the newest free gambling bankrolls here on the online world. We are begginers and hope to learn from the best. Thank you and we expect your feedback even if it is a bad one or a good one. Good luck to everyone!

  2. #2
    vmlinuz's Avatar
    vmlinuz is offline Private Member
    Join Date
    March 2009
    Location
    Transylvania
    Posts
    223
    Thanks
    24
    Thanked 45 Times in 32 Posts

    Default

    In my oppinion the best method is a combination of both. Make up a user-friendly URL for redirects like http://www.yoursite.com/goto/ or http://www.yoursite.com/casinos/ then redirect that address to a PHP script with .htaccess like this:
    Code:
    RewriteEngine On
    RewriteRule ^goto/([a-zA-Z0-9]+) redirect.php?name=$1
    Then in redirect.php you create an array of links and names. Example code:
    Code:
    <?php
    $urls = array(
      'casino1' => 'http://www.casino1affiliatelink.com/',
      'casino2' => 'http://www.casino2afflink.com/'
    );
    $default_link = 'http://www.default.com/';
    foreach($urls as $name => $url){
      if($name == $_GET['name']){ // some string matching functions could be used, too for matching in any CaSE
        header("Location: $url");
        die();
      }
    }
    // name not found go to default url
    header("Location: $default_link");
    ?>
    Your links will look like this: xxhttp://www.yoursite.com/goto/casino1
    Change goto in .htaccess to whatever you like, name your casinos, pokerrooms & bookmakers in any way you like. You can also add multiple entries in .htaccess for casinos, poker etc, and point it to the same file.

    Of course, this can be extended with url's stored in a database, tracking all clicks, referring pages etc. There are a lot of possibilities.

    I'm currently working on a similar Wordpress plugin, which will probably have a public release, too for GPWA members (sometime this summer) if anyone would be interested.

  3. The Following User Says Thank You to vmlinuz For This Useful Post:


  4. #3
    Chips's Avatar
    Chips is offline Private Member
    Join Date
    October 2007
    Location
    God's Country
    Posts
    3,618
    Thanks
    1,040
    Thanked 1,202 Times in 886 Posts

    Default

    Here is how I do it. Rather simple task, I am not a coding guru by any means.

    1. Make a directory (folder) in the root of your site. I call mine "recommends".
    2. Begin making files for your affiliate links, you can save them as the casino/poker site/book, whatever. Like this:

    Code:
    <?php
    header("Location:http://example.com/affcode");
    ?>
    Let's say that is for "Casinobest.com", save the file (with only the above code in it) to the folder you made. (Save the file as Casinobest.php)

    3. In your review/home page/email, you will link the site as such:

    Code:
     
    <a href="http://mysite.com/recommends/Casinobest.php">Anchor text</a>
    The visitor clicks your link, the browser goes to your "recommends" folder, and finds the file, and then straight to the casino.

    In your robots.txt file, add this:

    Disallow: /recommends

    That way the filder will not be crawled.

    You can call the folder whatever you wish, I have one website that I called it "Visit" so when a visitor hovers the link it appears as "http://website.com/Visit/Casinobest.php. Then... I did a separate folder to hold direct download links called "download" the link shows as "http://thewebsite.com/download/Casinobest.php"

    Hope this helps. Feel free to post any questions or PM me.
    --
    "People who are unable to motivate themselves must be content with mediocrity." ~Andrew Carnegie~

  5. The Following User Says Thank You to Chips For This Useful Post:


  6. #4
    Tigerboy's Avatar
    Tigerboy is offline Private Member
    Join Date
    May 2009
    Location
    Romania
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default thanks!

    Thanks guys for all informations! My mistake was that i was trying to redirect links on my localhost and didn't work. Now i make a php document for each affiliate i uploaded on ftp and done. Everything is working!
    Thanks again and have a nice day!
    Working...and working...and working to list the newest free gambling bankrolls here on the online world. We are begginers and hope to learn from the best. Thank you and we expect your feedback even if it is a bad one or a good one. Good luck to everyone!

  7. #5
    casinojack's Avatar
    casinojack is offline Public Member
    Join Date
    February 2009
    Location
    Under Anthony's bed.
    Posts
    1,428
    Blog Entries
    2
    Thanks
    775
    Thanked 454 Times in 301 Posts

    Default

    Also, u can use this method to block the reffer...


    look up double meta refresh...

    @vmlinuz - I love this plugin http://www.mbpninjaaffiliate.com/
    "CasinoJack"


  8. #6
    vmlinuz's Avatar
    vmlinuz is offline Private Member
    Join Date
    March 2009
    Location
    Transylvania
    Posts
    223
    Thanks
    24
    Thanked 45 Times in 32 Posts

    Default

    @casinojack:
    Thanks for the PM. It looks good, but I what I wrote is a bit different (a method I use on all of our sites) so I ported that one to Wordpress. Mine works similar to bbcodes on forums (as it started as a forum plugin). For example I want to link to partypoker. I define the bbcode [pp] and use it as [pp]link text[/pp] in a text. This will be converted to a link in the output. If someone clicks on it I'll be recorded then redirected to the affiliate link.
    Anyways, it gave me a couple of ideas to implement
    Last edited by vmlinuz; 8 July 2009 at 5:08 pm.

  9. #7
    casinojack's Avatar
    casinojack is offline Public Member
    Join Date
    February 2009
    Location
    Under Anthony's bed.
    Posts
    1,428
    Blog Entries
    2
    Thanks
    775
    Thanked 454 Times in 301 Posts

    Default

    Np man, good luck!! maybe u can make it better !!
    "CasinoJack"


  10. #8
    universal4's Avatar
    universal4 is offline Forum Administrator
    Join Date
    July 2003
    Location
    Courage is being scared to death...and saddling up anyway. John Wayne
    Posts
    33,924
    Thanks
    4,524
    Thanked 9,283 Times in 5,971 Posts

    Default

    I use a program called fastclick.

    It is php and mysql based.

    Just remember to disallow the factclick folder in robots.txt.

    Remember that htaccess won't work on an IIS server (prior to 200 without a third party program such as isapi_rewrite installed by the server admin. Helicon's latest version of this follows the same systax as that of htaccess for apache so sites can easily be moved between os's without changes.

    Server 2008 has some new features such as a rewrite engine and I do believe the systax is the same or very close.

    Rick
    Universal4
    Gambling World Online Roulette Online Blackjack Live Online Games Sports Betting Horse Racing
    Casino Affiliate Programs
    Hosting and Domain Names
    Gambling Industry Association
    GPWA Moderation by Me and My Big Bad Security Self
    If an affiliate program is not small affiliate friendly (especially small US Affiliate), then they are NOT Affiliate Friendly!

  11. #9
    bingoparadise is offline Private Member
    Join Date
    January 2009
    Location
    Manchester
    Posts
    62
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Risk to ranking?

    Hello.
    I am very interested in implementing the method shown in post 3. However, does it pose any risk to rankings? Can it cause problems with the search engines.
    Thanks
    -Tom

  12. #10
    greekhand is offline Public Member
    Join Date
    June 2009
    Posts
    40
    Thanks
    3
    Thanked 17 Times in 7 Posts

    Default

    Quote Originally Posted by waitetom View Post
    Hello.
    I am very interested in implementing the method shown in post 3. However, does it pose any risk to rankings? Can it cause problems with the search engines.
    Thanks
    -Tom
    Hi Tom ...

    It will not cause you with any problems with the search engines.

    In addition I can recommend you to use the googlebot meta tag in the redirecting page ...

    Example :

    Code:
    <meta name="googlebot" content="noindex,nofollow">
    EDIT : I just saw that the other guy recommended to use robots.txt which have the same affect ... You can choose either way.
    Free Online Poker Tournaments Widget you can use it in your site with your affiliate links.

  13. The Following User Says Thank You to greekhand For This Useful Post:


  14. #11
    bingoparadise is offline Private Member
    Join Date
    January 2009
    Location
    Manchester
    Posts
    62
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Thanks

    Thank you for your useful advice.
    I think we'll implement it to try and cut down out external links.
    Cheers
    -Tom

  15. #12
    greekhand is offline Public Member
    Join Date
    June 2009
    Posts
    40
    Thanks
    3
    Thanked 17 Times in 7 Posts

    Default

    Hi waitetom ... And everybody else that looking for easy way to redirect their affiliate links ...

    You can check my Rummy website and see how I did it : http://www.rummyon.com .

    I have a page called /el.aspx (el stands for external link) ... Then I pass the url with the parameter so it looks like : /el.aspx?u=www.externa-lblah-blah.com .

    I added the googlebot meta tag to the el.aspx page (Like I showed in the last post).
    Free Online Poker Tournaments Widget you can use it in your site with your affiliate links.

  16. #13
    Deaddog's Avatar
    Deaddog is offline Private Member
    Join Date
    August 2004
    Location
    Norge
    Posts
    227
    Thanks
    4
    Thanked 6 Times in 6 Posts

    Default

    Another way to do it is to this: (Using Ladbrokes as an example.)

    Code:
    <HTML>
    <HEAD>
    <title>Ladbrokes Casino</title>
    <meta http-equiv="refresh" content="0;URL=http://www.ladbrokes.com/ast?action=go_asset&new=0&aff_id=22761&asset_id=5636">
    </HEAD>
    <BODY>
    </BODY>
    </HTML>
    call this file, in this case, Ladbrokes.htm. Upload it to your server. Hyperlink your ladbrokes visits to ladbrokes.htm.

  17. The Following User Says Thank You to Deaddog For This Useful Post:

    buyonaut (28 August 2009)

  18. #14
    robyroy is offline Private Member
    Join Date
    March 2009
    Location
    Somewhere on this earth
    Posts
    235
    Thanks
    11
    Thanked 42 Times in 32 Posts

    Default

    hi guys.
    For me , easyest way to redirect affiliate links is 301 redirect from .htaccesss like that:
    redirect 301 /xxx.html afflink
    where xxx.html is a blank page inside of your site, and of course afflink shoud be your affiliate link.
    is working fine to me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •