Redirecting Traffic

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Compdoctor
    Confirmed User
    • Aug 2001
    • 1937

    #1

    Redirecting Traffic

    Let me explain further before you get mixed up. I want to redirect traffic, but I want to send it to different places each time.

    Is this possible?
    Content By Compdoctor- Original 3D Cartoon Work

    3D Comics

    Anime Resource Accepting Toon/Hentai Links
  • Lycanthrope
    Confirmed User
    • Jan 2004
    • 4517

    #2
    Well, the easiest way - you could send the redirects to a simple php script that will grab a random site from an array and redirect them accordingly:

    random.php

    <?php

    // random site
    $s_a = array ( "http://www.site.one", "http://www.site.two", "http://www.site.three", "http://www.site.four" );
    $s_b = rand(0, (count($s_a)-1));
    $s = $s_a[$s_b];

    // redirect
    header("location: $s");
    exit;

    ?>

    Comment

    Working...