Quite a few people have asked me about how I hide my affiliate links (eg. Text Links Ads, Review Me, Amazon). There are many techniques out there. Most tell you to create a php file in notepad then use a header function in PHP to redirect your files and then upload that php file through FTP. That means: more files, more directories, more unorganized information, and more headache. This is way too long, confusing, and useless.
There’s a simpler way.
Most hosting companies gives you the telnet access to your site. Please consult your hosting service for this. The other way to do it is to create a file called “.htaccess” in notepad and write all your redirects and then upload the file. CAUTION: Make sure you don’t replace your currently existing “.htaccess” file. So back up the current “.htaccess” file, and then download that file, make necessary changes, then upload it back.
Here’s how I do the redirects:
- Open “.htaccess” file through telnet.
- Insert this line: Redirect /dreamhost http://www.dreamhost.com/r.cgi?257222
That’s it! What that does now is, once you type: http://deafmusician.com/dreamhost/, it will redirect it to the URL next to the directory name. Make sure you have a full understanding of “.htaccess” files before you proceed, I am not responsible for any mistakes you might make. Feel free to post a comment if you have any questions.
There’s also a plug-in that can do this.
