How does php determine domain name jump?

coldplay.xixi
Release: 2023-03-01 13:30:02
Original
4215 people have browsed it

How does php determine domain name jump?

#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 after login

How does php determine domain name jump?

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!

Related labels:
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