php跳转代码默认文档设置1 :
?php switch ($_server[http_host]) { case www.a.com: header(location:a/index.php); break; case www.b.com: header(location:b/index.php); break; case www.c.com: header(location:c/index.php); break; } ?>
php跳转代码默认文档设置2 :
?php $http_host=$_server['http_host']; if(($http_host==a.com)or
($http_host==www.a.com)) {header(location:/index.html); } elseif(($http_host==b.net)or
($http_host==www.b.net)) {header(location: /kangbite/); } elseif(($http_host==c.com)or
($http_host==www.c.com)) {header(location: /c/); } else {} ?>
以上就是php跳转代码的具体代码实现方法。
http://www.bkjia.com/phpjc/446165.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/446165.htmltecharticlephp跳转代码默认文档设置1 : ?php switch($_server[http_host]) { casewww.a.com: header(location:a/index.php); break; casewww.b.com: header(location:b/index.php); break; case...