Does anyone know how to mask outgoing links on WordPress blogs so it looks like the following: Ex: websitename.com/google Instead of google.com
bit.ly will do that for you. Or if wanted, buy xMarkPro (google it -- not allowed to post links yet), and it contains full link tracking functionality.
The easiest way is to make a folder (directory) in your site called "google" and then put an index.php page in there with php redirect code so the full url would be websitename.com/google and when visited would load the redirect index and send the visitor to the desired url. Obviously change the names to suit your requirements. The redirect index.php page should be: <?php header('Location:http://www.google.com'); ?> Code (markup): If you wanted to track the visitors use an index.html page with a meta redirect and put the tracking script (statcounter?) in the body of the page, it's a bit longer and not so fast to redirect but it works still. redirected index.html: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Redirecting</title> <meta name="robots" content="noindex, nofollow, noarchive"> <meta http-equiv="Refresh" content="0; URL=http://www.google.com"> </head> <body> Loading... <!-- counter code here --> </body></html> Code (markup):
there is a free plugin on wordpress called the kaitora affiliate system that will do something similar, though it would appear like example.com/yourword/keyword it also has basic click tracking until the author adds something more advanced for example http://www.yoursite.com/out/google the link to the plugin is : http://wordpress.org/extend/plugins/kaitora-affiliate-system/ hope this helps