- This topic has 7 replies, 2 voices, and was last updated 11 years, 10 months ago by
StartupWP.
-
AuthorPosts
-
April 18, 2014 at 5:35 PM #1563
StartupWP
KeymasterMoving 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>April 18, 2014 at 6:37 PM #1564uendi
ParticipantSorry 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.
April 18, 2014 at 7:14 PM #1566StartupWP
KeymasterBoth 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/April 19, 2014 at 5:33 PM #1569uendi
ParticipantThis 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.
April 20, 2014 at 1:06 PM #1571StartupWP
KeymasterCan you share the full contents of your .htaccess file (considering there is no security-based code in there that should be kept private)?
April 22, 2014 at 5:25 PM #1577uendi
ParticipantVery 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.
April 23, 2014 at 1:54 PM #1578StartupWP
KeymasterGreat to hear.
-
AuthorPosts
- You must be logged in to reply to this topic.
