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

WBOY
Release: 2016-07-13 17:21:16
Original
980 people have browsed it

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...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template