搜索
首页php教程PHP源码php 301二级域名定义方法

<script>ec(2);</script>

php 301二级域名定义方法

02 //本程序由 uit88 修改! 

03 $mydomin = $_SERVER['HTTP_HOST'];//获取输入的域名 

04 switch ($mydomin) { 

05     case ("www.023wo.com") : 

06         header('HTTP/1.1 301 Moved Permanently');//发出301头部信息    

07         header('Location: [url]http://www.023wo.com/wo'[/url]);  //跳转到相应域名目录  

08         break; 

09     case ("023wo.com") : 

10         header('HTTP/1.1 301 Moved Permanently');  

11         header('Location: [url]http://www.023wo.com/wo'[/url]); 

12         break; 

13     case ("www.sionwes.com") : 

14         header('HTTP/1.1 301 Moved Permanently'); 

15         header('Location: [url]http://www.sionwes.com/studio'[/url]); 

16         break; 

17     case ("sionwes.com") : 

18         header('HTTP/1.1 301 Moved Permanently');  

19         header('Location: [url]http://www.sionwes.com/studio'[/url]); 

20         break; 

21     case ("www.111cn.net") : 

22         header('HTTP/1.1 301 Moved Permanently');   

23         header('Location: [url]http://www.lansiru.com/siru'[/url]); 

24         break; 

25     case ("lansiru.com") : 

26         header('HTTP/1.1 301 Moved Permanently');  

27         header('Location: [url]http://www.lansiru.com/siru'[/url]); 

28         break; 

29 } 

30 ?>

声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

Video Face Swap

Video Face Swap

使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热门文章

热工具

EditPlus 中文破解版

EditPlus 中文破解版

体积小,语法高亮,不支持代码提示功能

Dreamweaver CS6

Dreamweaver CS6

视觉化网页开发工具

Atom编辑器mac版下载

Atom编辑器mac版下载

最流行的的开源编辑器

SublimeText3汉化版

SublimeText3汉化版

中文版,非常好用

适用于 Eclipse 的 SAP NetWeaver 服务器适配器

适用于 Eclipse 的 SAP NetWeaver 服务器适配器

将Eclipse与SAP NetWeaver应用服务器集成。