
2006-10-15, 02:01 PM
|
|
超级版主
|
|
Join Date: 2006-01-04
Posts: 1206
|
|
再写一个好代码,可以试下:
Quote:
$host=$HTTP_SERVER_VARS[SERVER_NAME];
switch ($host) {
case "www.222.com":
require_once '222.htm'; //
break;
case "www.333.com"
require_once '333.htm'; //
break;
default:
require_once 'index.html'; // 如 其他地址 的首页文件为 other.htm
break;
?>
|
|