title: PHP - If domain
body: <p>I have the following piece of coding on a multi-domain 1 template setup:</p>
  
  <pre><code>&lt;?php  $host = parse_url($domain, PHP_URL_HOST);
  if($host == 'www.justdoors.co') {
  echo "action goes here";
  } ?&gt;
  </code></pre>
  
  <p>For some reason it's not carrying out the action when I'm on the www.justdoors.co domain, what am I missing?</p>