Function For Ugly Affiliate Links

by YP8
3 replies
What function should I be using when placing ugly looking affiliate links like those form Amazon - when converting to PDF?

Is there some kind of rollover effect that you place the name of the product, and the rest of the link name is hidden?

Thanks
#affiliate #function #links #ugly
  • Profile picture of the author theemperor
    I recommend you have a url on your site, e.g.

    http://www.yoursite.com/go/amazonbook

    Which then redirects to the affiliate link. Not only is this less ugly but it gives you control over the link, e.g. if you need to switch Amazon accounts or promote the same product but outside of Amazon.

    You then place the link to http://www.yoursite.com/go/amazonbook in your pdf.

    To set up the redirect google for "htaccess redirect" and you will find out how to do it. It is just a case of adding entries to a file called .htaccess on your website.
    Signature
    Learn to code faster, and remove the roadblocks. Get stuff done and shipped! PM me and I can help you with programming tutoring, specialising in Web and the following languages: Javascript ~ HTML ~ CSS ~ React ~ JQuery ~ Typescript ~ NodeJS ~ C#.
    {{ DiscussionBoard.errors[2189710].message }}
  • Profile picture of the author waken
    Originally Posted by YP8 View Post

    What function should I be using when placing ugly looking affiliate links like those form Amazon - when converting to PDF?

    Is there some kind of rollover effect that you place the name of the product, and the rest of the link name is hidden?

    Thanks
    You can hyperlink any words without actually putting the whole ugly links in pdf..
    {{ DiscussionBoard.errors[2189714].message }}
  • Profile picture of the author cameronlaw
    what you can do is use a simple php redirect from one of your sites.

    If you have a site with a related domain to the product you are selling, your link could be something like this:

    www.example.com/recommends/product.php

    Here's how:

    1) open a text file
    2) copy and paste this:

    <?php
    header('Location: http://your-ugly-aff-link.com/');
    ?>

    3) save is as a php file
    4) upload it to the 'recommends' folder with your ftp client

    Hope this helps

    there might be a simpler way, i'm not sure
    {{ DiscussionBoard.errors[2189731].message }}

Trending Topics