can build many web sites, with one web host, one site with one different domain, just using php, it can make you very happy, save your money.
$arrays=array(
’www.money.com’=>’money/index.html’,
’www.insurance.com’=>’insurance/index.html’,
’www.car.com’=>’car/index.html’,
’www.travel.com’=>’travel/index.html’,
’127.0.0.1’=>’forum/index.php’,
);
$url = $arrays[$_SERVER[’HTTP_HOST’]];
Header(â€Location: $urlâ€);
?>
We also can use the following codes:
$domain_net=â€money.comâ€;
$dot_net_url=â€forum/â€;
$dot_com_url=â€carâ€;
if(($HTTP_HOST==â€$domain_netâ€)or($HTTP_HOST==â€www.$domain_netâ€))
{
Header(â€Location: $dot_net_urlâ€);
}
else
{
Header(â€Location: $dot_com_urlâ€);
}
?>