title: Check referrer for certain url
body: <p>I have some device redirection PHP at the top of each of my sites pages that I want to disable if the page was reached from a certain url.</p>
  
  <p>How can I disable this PHP if the user arrived at that page by clicking from <a href="http://www.mysite.com/mobile" rel="nofollow">http://www.mysite.com/mobile</a></p>
  
  <p>That url could change, ie: <a href="http://www.mysite.com/mobile/blah/blah" rel="nofollow">http://www.mysite.com/mobile/blah/blah</a> or <a href="http://mysite.com/mobile/blah/" rel="nofollow">http://mysite.com/mobile/blah/</a></p>
  
  <p>I just need to check for the 'mysite.com/mobile' part.</p>