I have a forum. I put an affiliate link above the forum thread. However, after I put the link in standard html last week (even with a nofollow) noticed a 15 percent drop in traffic from google. The traffic drop started the next day after I put the link. This type of drop in traffic never happened in the past 1 year. My forum, otherwise does not have any external links, as links are switched off to guests (and bots). So what is the best way to provide an affiliate link, without showing it as an external link? Wrap it inside javascript like this? I used the above javascript code and the link is visible in the forum. I am not a coder, so tell me if the above code is correct technically and also from SEO standpoint.
RewriteRule getyourdreamjob.html http://www.affiliatesiteid.com/registration.html?VendorId=xxxxx <a href="getyourdreamjob.html">get your dream job</a>