Home  >  Article  >  Backend Development  >  多个域名绑定一个空间互不影响(PHP)_PHP

多个域名绑定一个空间互不影响(PHP)_PHP

WBOY
WBOYOriginal
2016-06-01 12:25:33886browse

上次发了一个ASP多个域名绑定一个空间互不影响 人气旺旺的。

$domain_net="abc.com";
$dot_net_url="bbs/";
$dot_com_url="flash";
if(($HTTP_HOST=="$domain_net")or($HTTP_HOST=="www.$domain_net"))
{
Header("Location: $dot_net_url");
}
else
{
Header("Location: $dot_com_url");
}
?>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn