title: Recognizing domain redirection
body: <p>I have two domain for my site. The main site is <em>example.net</em>, and I have <em>example.com</em>. </p>
  
  <p>If someone type <em>example.com</em> (or <em>www.example.com</em>, <em><a href="http://example.com" rel="nofollow noreferrer">http://example.com</a></em> or whatever) then I redirect them to <em>example.net</em> (my provider set domain redirecting).</p>
  
  <p>So, is it possible, to take into a php variable if someone come from <em>.com</em> or directly type <em>.net</em>?</p>
  
  <p>Thank you</p>