redirect code for affiliate links

2 replies
Any one have or can share with me in simple terms or steps the safest and best way to redirect an affialite link?

I know its available to do, I just thought someone might have a very easy and good way to explain it so I can do it, since I have never done it before.

Thanks in advance,
Steve
#affiliate #code #links #redirect
  • Profile picture of the author Steve Wells
    Originally Posted by Johnathan View Post

    Depends what language you are using on your server, but something like:

    <?
    header("http://www.affiliatelink.com/?whatever");
    exit;
    ?>

    works nicely in php.
    My server is a linux platform. I am using html pages so how would I integrate this into a html page, mayeb a short 1,2,3 instructional, if you do not mind, you can even P/M it to me if you would like.
    Signature
    Need Custom Graphics Work? - Message Me For A Design Quote!
    {{ DiscussionBoard.errors[1428097].message }}
  • Profile picture of the author jimbo999
    As long as your linux server runs PHP your fine. Just test this to find out.
    If you are doing an html page use <?php instead of <? and I also corrected to header function, it would not redirect as coded above

    <?php
    header("Location: http://www.affiliatelink.com/?whatever");
    exit;
    ?>

    1. Copy and Paste the PHP code and save in as an .html and u/l to server. Make SURE that there is no whitespace before the <?php
    ex: hxxp://mysite.com/lander.html
    2. Navigate to hxxp://mysite.com/lander.html and see if it redirects you. If so, success!!
    {{ DiscussionBoard.errors[1428391].message }}

Trending Topics