Great question — answering as the UphillTech team:
Your .htaccess file needs to look something like this: RewriteEngine on RewriteRule [URL to redirect from] [URL to redirect to] [options] RewriteEngine on basically switches the mod_rewrite module on. Then you need to say what the URL you're expecting people to enter looks like, you can use regular expressions here, in fact, the whole thing IS a regular expression. URL to redirect to is usually internal, but it should work with a full link. So in practice, something like: RewriteEngine on RewriteRule ^/wishonlist/appstore(/)?$ http://myAffiliateLinkHere [301,L] The ^ and $ to denote the start and end of the URL, and (/)? means that it can be entered with or without a trailing slash and...
Full answer by Codecraft: https://webmasters.stackexchange.com/a/23508 (CC BY-SA 3.0).
Need it done for your business? UphillTech.