title: http_host with and without www
body: <p>I have a message to appear in PHP if the domain going to is outside some existing ones already redirecting to the account.</p>
  
  <p>For example, the command I am trying to run if the domain is www or non www is:</p>
  
  <pre><code>if( $_SERVER[ 'HTTP_HOST' ] != ('xxx.co.uk' &amp;&amp; 'www.xxx.co.uk'))
  </code></pre>
  
  <p>However, this doesnt seem to work as if I go to xxxx.co.uk (which is another domain pointing to their account) the if content still do not show.</p>
  
  <p>Am obviously missing something obvious with the above?</p>