Redirect to an affiliate link.

5 replies
  • WEB DESIGN
  • |
This is a two part question:

1. If in a static website I want to create a directory on my site ie. mywebsite.com/affilliatename so that it will redirect directly to the affiliate link, what is the best way to do this.

2. Same question but in a self hosted Wordpress site. How would I do the same there?

Thanks.
#affiliate #link #redirect
  • Profile picture of the author tjmiller
    This is what I use:

    <html>
    <head>
    <title>Loading page...</title>
    <meta http-equiv="refresh" content="2;RL=YOURAFFILIATELINKGOESHERE">
    <script>
    url='YOURAFFILIATELINKGOESHERE';
    if(document.images) { top.location.replace(url); }
    else { top.location.href=url; }
    </script>
    </head>
    <body>Loading
    <a href=YOURAFFILIATELINKGOESHERE>page</a>...
    </body>
    </html>

    Just put your affiliate link in the places where it says YOURAFFILIATELINKGOESHERE. This will also work in Wordpress. Just create a new page, and use the HTML tab and past in the code.

    Hope this helps!
    {{ DiscussionBoard.errors[1228922].message }}
    • Profile picture of the author BanditSiix
      Teresa,

      That ROCKS!!! I know it's probably something simple for you but it's AWESOME for me. I'm saving that one for sure. Thanks for taking the time to share.

      Anthony
      {{ DiscussionBoard.errors[1229071].message }}
  • Profile picture of the author cmaclean
    I use this:

    - Create a folder with the name you need (in your example case it would be 'affilliatename')

    - Inside of it create a file called 'index.php'

    - Copy this code in the index.php file:
    <?php header("Location: Affiliate_link_goes_here"); ?>

    - Upload the file to your webserver and you're good.

    I also do this so I can forward people easily to my Twitter and Facebook accounts (ex. craigmaclean.com/facebook --- although that one's not setup )
    {{ DiscussionBoard.errors[1232373].message }}
    • Profile picture of the author bjradioguy
      There is also a plugin that will do this for you without the need to create new pages every time.

      Check out Link Hopper.I use it all the time and yes, it does pass you affiliate cookie.

      I use this on new 2.8.4 blogs, so it is current.
      Signature

      Learn to Make Money Online for FREE (no gimmicks/no upsells) | Try Niche Finder - Its Free

      {{ DiscussionBoard.errors[1233451].message }}

Trending Topics