<?php
$arrays=array(
'www.aa.com'=>'aa/index.html',
'www.bb.com'=>'bb/index.html',
'www.cc.com'=>'cc/index.html',
'www.dd.com'=>'dd/index.html',
'127.0.0.1'=>'bbs/index.php',
);
$url = $arrays[$_SERVER['HTTP_HOST']];
Header("Location: $url");
?>