1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Traffic distribution

Discussion in 'HTML & JavaScript' started by meCODEX, Mar 5, 2016.

  1. meCODEX

    meCODEX Registered Member

    Joined:
    Jun 23, 2011
    Messages:
    77
    Likes Received:
    9
    I want to buy some traffic but i want to make something and don't know how to do it.

    I want to sent all my traffic to a link, let's say : mysite.com/traffic.php or /traffic.html
    and from there i want to distribute traffic, random or equal to a list of links .

    from mysite.com/traffic.php to --> mysite.com/1.html
    --> mysite.com/2.html
    --> mysite.com/3.html​

    does anyone know a script like this or a wordpress plugin ?

    Thank you :)
     
  2. johnnyfortner

    johnnyfortner Newbie

    Joined:
    Feb 24, 2013
    Messages:
    13
    Likes Received:
    3
    Gender:
    Male
    Occupation:
    Being an asshole
    Location:
    United States
    you could always redirect them with a refresh timer
    Code:
     
     <META http-equiv="refresh" content="5;URL=theurltoyournextpage">
    
    content variable set to 5 seconds or any number of your choice
     
  3. roadhamster

    roadhamster Regular Member

    Joined:
    Mar 12, 2012
    Messages:
    340
    Likes Received:
    244
    Code:
    <?php
    $links=array("url1","url2","url3");
    $destination=$links[mt_rand(0,count($links)-1)];
    header("Location: " . $destination);
    exit(); 
    ?>
    
    Replace the url1,2,3 with your links and you can add links to your needs. It redirects to one of the links in random style.
     
    • Thanks Thanks x 2
  4. meCODEX

    meCODEX Registered Member

    Joined:
    Jun 23, 2011
    Messages:
    77
    Likes Received:
    9
    Thank you very much !
     
  5. tompots

    tompots Elite Member Premium Member

    Joined:
    Dec 11, 2011
    Messages:
    4,371
    Likes Received:
    3,964
    Gender:
    Male
    Occupation:
    Full Time Bot Developer
    Location:
    Automation Alternatives
    Home Page:
    If your using wordpress for your sites you can use https://prettylinkpro.com/ to split test, or other methods for split testing your pages.

    Code:
    https://www.google.com/#q=split+testing+tools