Some of you have to know about tinyurl service or user is using gocode wordpress plugin. We bring this affiliate link cloaking into a new era, using simple php code we have our own TinyURL service within our blog, even more, without using plugin so low consumption on server. This way, we can improve our way of placing and displaying our affiliate links for better click through rate, of course.
Now I will explain how to use a simple code of php to hide the url affiliation as “http://www.chitika.com/reff=293” or “http://tinyurl.com/trjfg” to be “http://domain.tld/chitika.php” without using the plugin or tinyurl service.
1. Prepare your code affiliates url, for instance, “http://chitika.com/reff=293”
2. copy and paste this code
1 2 3 | <?php header("location: http://chitika.com/reff=293"); ?> |
<?php header("location: http://chitika.com/reff=293"); ?>
Change “http://chitika.com/reff=293” with your own code affiliates url
3. Save your php file for example ‘chitika.php‘ name.
4. Uploaded to the server in the root folder of your website (such as public_html)
5. Done
For using this tips, for example file name is chitika.php
https://mfaisal.com/chitika.php
http://domain.tld/php-file-name.php