I need to test 3 landing pages with one domain... I currently have a simple php "if > else" statement on index.php that sends 50/50 to each LP .. here it is:
PHP Code:
<?php
if(rand(0,1) == 0) {
header("Location: http://www.domain.com/landingpage1.html");
} else {
header("Location: http://www.domain.com/landingpage2.html");
}
?>
I was wondering how to ad a third page in there or if I have to change to an array type of thing.... .I was googling this stuff but couldn't find something other than a 50/50 split test...
What I am trying to avoid is to use a dynamic link such as domain.com/?id=landing1.html to test these 3 pages.. .instead I'd like to send traffic to domain.com and have some php code split the traffic...
Any ideas? ...
</NO trolls pls I am workin late and don't have time for ur shit, thanks>