Kirkusscott
10/5/2017 - 3:02 PM

direct linking redirect (for split testing affiliate link)

direct linking redirect (for split testing affiliate link)

<script language="javascript">
$(document).ready(function() {
   window.location.href = "go.php";
});
</script>
<? 
$urls = array( 
"http://www.affiliateurl1.com", 
"http://www.affiliateurl2.com", 
"http://www.affiliateurl3.com", 
"http://www.affiliateurl4.com"); 
$url = $urls[array_rand($urls)]; 
$destination = "Location: $url"; 
header($destination); 
?>