Вы используете неправильные значения.
// REQUEST_URI is the requested URI path plus the requested URI query, so let’s strip the latter
$_SERVER['REQUEST_URI_PATH'] = preg_replace('/\?.*/', '', $_SERVER['REQUEST_URI']);
// HTTP_HOST may not be set if the request didn’t contain the Host header field (just HTTP/1.0)
if (isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST']=='www.testground.idghosting.com' && $_SERVER['REQUEST_URI_PATH'] == '/idi/our-production/') {
// host is "www.testground.idghosting.com" and requested URI path is "/idi/our-production/"
}
См. В руководстве, какие значения содержит $_SERVER
.