#How does php determine domain name jump?
php method to determine domain name jump:
<?php switch ($_SERVER["HTTP_HOST"]) { case "要判断的域名": header("location:跳转路径"); break; case "要判断的域名": header("location:跳转路径"); break; ?>
Copy the above file to a blank php file , save and upload to the root directory of the website. That’s it.
Recommended tutorial: "php video tutorial"
The above is the detailed content of How does php determine domain name jump?. For more information, please follow other related articles on the PHP Chinese website!