PHP jump code default document setting 1:
The above is the specific code implementation method of PHP jump code.
<ol class="dp-xml"><li class="alt"><span><span class="tag"><</span><span> ?php </span></span></li><li><span>$</span><span class="attribute">HTTP_HOST</span><span>=$_SERVER['HTTP_HOST']; </span></li><li class="alt"><span>if(($</span><span class="attribute">HTTP_HOST</span><span>=="a.com")or<br />($</span><span class="attribute">HTTP_HOST</span><span>=="www.a.com")) </span></li><li><span>{Header("Location:/index.html"); } </span></li><li class="alt"><span>elseif(($</span><span class="attribute">HTTP_HOST</span><span>=="b.net")or<br />($</span><span class="attribute">HTTP_HOST</span><span>=="www.b.net")) </span></li><li><span>{Header("Location: /kangbite/"); } </span></li><li class="alt"><span>elseif(($</span><span class="attribute">HTTP_HOST</span><span>=="c.com")or<br />($</span><span class="attribute">HTTP_HOST</span><span>=="www.c.com")) </span></li><li><span>{Header("Location: /c/"); } </span></li><li class="alt"><span>else </span></li><li><span>{} </span></li><li class="alt"><span class="tag">?></span><span> </span></span></li></ol>
http://www.bkjia.com/PHPjc/446165.html
www.bkjia.com
http: //www.bkjia.com/PHPjc/446165.html