The beta release of my affiliate plugin is upon us, and one of the new features is the ability to create short redirect links around your site. This means you can easily redirect and track your affiliate links to see which ones perform well and which pages of your e107 site are supplying your partners the most traffic and which aren\’t working out.
However, if you want to make your links appear in a nice neat looking short format then you will need to setup a rule in your .htaccess file to redirect the link to the plugin page that handles the redirection.
Setting up Your Redirect Links
First off, tick that you wish to use rewritten links, and then enter the form you wish for the URL, so here I want to use jezza101.co.uk/link/redirectid:
But this won’t work until you set your Web server up to handle the redirects. If you use an Apache based server your host will hopefully allow you to use “Mod_Rewrite”. This allows you to redirect any URL to any other URL on your server. If using a Windows based server then this is still possible but you will need to investigate this yourself (for example).
Within your .htaccess file you will need to create a rule to send traffic to the plugin URL, the example below again uses the word “links”, but you can use any you wish:
RewriteRule ^links/([^.]*)$ e107_plugins/affiliate/linkredirect.php?$1 [L]