PHP头条
热点:

同一空间绑定多个域名而实现访问不同页面的PHP代码


<?php 
switch ($_SERVER["HTTP_HOST"]) { 
    case "www1.aspcn.net": 
        header("location:index1.htm"); 
        break; 
    case "www2.aspcn.net": 
        header("location:index2.htm"); 
        break; 
    case "www3.aspcn.net": 
        header("location:index3.htm"); 
...... 继续添加 ...... 
        break; 

?>

www.phpzy.comtrue/php/12782.htmlTechArticle同一空间绑定多个域名而实现访问不同页面的PHP代码 ?php switch($_SERVER["HTTP_HOST"]){ case"www1.aspcn.net": header("location:index1.htm"); break; case"www2.aspcn.net": header("location:index2.htm"); break; case"www3.aspc...

相关文章

    暂无相关文章
相关频道:

PHP之友评论

今天推荐