Home >Backend Development >PHP Tutorial >Binding multiple domain names to one space does not affect each other_PHP tutorial

Binding multiple domain names to one space does not affect each other_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-13 17:21:161022browse

Last time I posted an ASP and bound multiple domain names to one space without affecting each other. It was very popular.

$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");
}
?>


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/532495.htmlTechArticleLast time I posted an ASP with multiple domain names bound to one space without affecting each other's popularity. $domain_net="abc.com"; $dot_net_url="bbs/"; $dot_com_url="flash"; if(($HTTP_HOST=="$domain_net")o...
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