I'm sending traffic to a .php on my server, and I want to redirect all users who come from 'google' to a specific url, and all else are redirected to another url. How do I do this? Thanks
<?php $ref = = $_SERVER['HTTP_REFERER']; if(strstr($ref,"google")) { header("Location: http://www.peoplefromgooglegohere.com/"); } else { header("Location: http://www.otherpeoplegohere.com/"); } ?> Code (markup):