I have the following piece of coding on a multi-domain 1 template setup:
<?php $host = parse_url($domain, PHP_URL_HOST);
if($host == 'www.justdoors.co') {
echo "action goes here";
} ?>
For some reason it’s not carrying out the action when I’m on the http://www.justdoors.co domain, what am I missing?
Use
$_SERVER['SERVER_NAME']or$_SERVER['HTTP_HOST']variable