.htaccess - How can I hide affiliate URL before redirecting to actual store URL using PHP? -


<html> <head> <title>your page title</title>  <meta http-equiv=”refresh” content=”0;url=http://your affiliate url”> </head> <body> <p>redirecting, please wait. if you’re not redirected within couple of seconds, click here:<br /> <a href=”http://tracking.vcommission.com/aff_c?offer_id=2371&url=http%3a%2f%2fwww.naturesbasket.co.in%2fonline-grocery-shopping%2ffruits-vegetables%2ffruits%2f32_0_0%3futm_source%3dvcomm%26utm_medium%3dcps%26utm_campaign%3dvcommron”>product name</a>  </p> </body> </html> 

affiliate url or affiliate user code or tracking code not safe visible easily. wanted hide tracking url before redirect store websites.

for example, suppose have affiliate link http://tracking.vcommission.com/aff_c?offer_id=2371&url=http%3a%2f%2fwww.naturesbasket.co.in%2fonline-grocery-shopping%2ffruits-vegetables%2ffruits%2f32_0_0%3futm_source%3dvcomm%26utm_medium%3dcps%26utm_campaign%3dvcommron

i wanted hide vcommission url , directly open store website

you should try hide tracking url , redirect in php this:

<?php      ob_start(); ?> <html> <head> <title>your page title</title>  <meta http-equiv=”refresh” content=”0;url=http://your affiliate url”> </head> <body> <p>redirecting, please wait. if you’re not redirected within couple of seconds, click here:<br /> <a href=”http://tracking.vcommission.com/aff_c?offer_id=2371&url=http%3a%2f%2fwww.naturesbasket.co.in%2fonline-grocery-shopping%2ffruits-vegetables%2ffruits%2f32_0_0%3futm_source%3dvcomm%26utm_medium%3dcps%26utm_campaign%3dvcommron”>product name</a>   <?php header( "refresh:5;url=http://tracking.vcommission.com/aff_c?offer_id=2371&url=http%3a%2f%2fwww.naturesbasket.co.in%2fonline-grocery-shopping%2ffruits-vegetables%2ffruits%2f32_0_0%3futm_source%3dvcomm%26utm_medium%3dcps%26utm_campaign%3dvcommron" ); ?> </p> </body> </html> 

in "refresh: {put count off seconds)" redirect after 5 sec

share|improve answer

your answer

 
discard

posting answer, agree privacy policy , terms of service.

not answer you're looking for? browse other questions tagged or ask own question.

Comments