New Topic

Hide Affiliate Link

Home › Forum › SEO › Hide Affiliate Link

This topic contains 7 replies, has 2 voices, and was last updated by  StartupWP 4 years, 11 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1562

    uendi
    Participant

    Hi

    I have a question is regarding of hiding affiliate link, I do not know under this forum, is it available to ask…?

    Thanks.

    #1563

    StartupWP
    Keymaster

    Moving to the SEO forum.

    The cleanest way to handle affiliate links is via the .htaccess file.

    Via FTP, you’ll want to access your website root (usually public_html) and find your .htaccess file (one can be created if you don’t see one).

    You’ll want to download it and edit it in a text/code editor, adding:

    rewriteengine on
    
    redirect /something-that-describes-the-link-here/ http://someaffiliatelinkhere.com/

    Then you can link to it in one of your posts/pages with:

    <a href="http://yourwebsite.com/something-that-describes-the-link-here/">Buy the CD</a>

    #1564

    uendi
    Participant

    Sorry as I can’t get into the same topic counter, may be it has been closed.

    Thank you in advance as it really helps me to hide that link, but I still need a little help:

    1. I set it http://yoursite.com/likes/wholesaleitonline, it hides the link but when it moves to the merchant site, it shows http://merchantsite.com/SSAID=xxxxxx, so is there any way to hide/visible “SSAID=xxxxxx” that part ?

    2. I have more than one affiliate link, is it still available to use .htaccess file ?

    Thanks.

    #1566

    StartupWP
    Keymaster

    Both topics have been merged.

    1. That’s how it works, it will usually show the affiliate link on the affiliate’s site. Some businesses handle affiliate links better than others, but for the most part, you’ll be left with that ugly, spammy looking link and have no control over it at that point.

    2. Add more like so:

    rewriteengine on
    
    redirect /something-that-describes-the-link-here/ http://someaffiliatelinkhere.com/
    redirect /something-that-describes-the-link-here/ http://someaffiliatelinkhere.com/
    redirect /something-that-describes-the-link-here/ http://someaffiliatelinkhere.com/
    #1569

    uendi
    Participant

    This morning, I tried to add in more redirect affiliate link, but somehow it’s not working at all. I can see my new redirect url and followed by all the affiliate link + id being shown. Those I set previously, maintain OK no problem at all but those additional new redirect for today are not working.

    Thanks.

    #1571

    StartupWP
    Keymaster

    Can you share the full contents of your .htaccess file (considering there is no security-based code in there that should be kept private)?

    #1577

    uendi
    Participant

    Very sorry as I am unable to share the full contents of .htaccess file as there are some private security-based code kept in there. However, I am managed to resolve the above-mentioned hidden affiliate link by using HTML code.

    Thank you very much.

    #1578

    StartupWP
    Keymaster

    Great to hear.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.