- Jun 7, 2011
- 352
- 154
Quick question, I need a script that will redirect users that came from Google to another url. Only the ones from Google. The site is on https.
I tried to find if the user came from Google by using:
But so far no luck
Can anyone help?
I tried to find if the user came from Google by using:
Code:
$referrer = parse_url($_SERVER['HTTP_REFERER']);
if(strpos($referrer['host'], 'google') !== FALSE){
}
But so far no luck
Can anyone help?