1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice

DMR redirect?

Discussion in 'Black Hat SEO' started by milestone, Dec 6, 2009.

  1. milestone

    milestone Regular Member

    Aug 27, 2009
    Likes Received:
    Is there a way to make a DMR that will redirect the visitor to 1 of 2 sites?

    I want to do some split testing, where some visitors are sent to one link after the DMR and other visitors are sent to another link after the DMR. Is this possible in one script?


    I just notices something in my DMR script, but i dont know php too well so i have no idea if it is what i think it is.

    Does this mean that it will choose a random URL from in the links.txt file? .. If so, does this mean i just put 2 URLS in the txt file?

    $sites = array_map("trim", file("links.txt"));
    $redirect = $sites[array_rand($sites)];
    $referer = $_SERVER['HTTP_REFERER']; if($referer == "")
    Last edited: Dec 6, 2009