I'm trying to do a redirect but ONLY if the referring page has two specific words in its URL.
For example, if someone comes to my site from Google after they've searched for the word 'disney', then I want them to be redirected to a specific page.
This is what I'm using, it's supposed to scan the referrer for two words (google and disney) and then redirect to another page but ONLY if the person came from 'google' AND searched for the word 'disney'.
It redirects okay if I only scan for one word, but it won't redirect for both words.
$refer = $_SERVER[HTTP_REFERER];
$goo = 'google';
$disn = 'disney';