$url=$_SERVER['HTTP_HOST'];
switch ($url) { case 'www.nbsxx.com': case 'nbsxx.com': echo '<script type="text/javascript">window.location.href="http://www.nbsxx.com/nbs/index.php";</script>'; break; default: break; }