Ec (2); php301 second-level domain name definition method & lt ;? Php & nbsp; 02 & lt; SPANclasst_tagonclicktagshow (event) href & quot; tag. php? Name % B3 % CC % D0 % F2 & quot; & gt; program & lt; SPAN & gt; modified by uit88! & Nbsp; 03 $ mydomin $ _ SERVER [HTTP _ script ec (2); script
Php 301 second-level domain name definition method
02 // bookProgramModified by uit88!
03 $ mydomin = $ _ SERVER ['HTTP _ host']; // obtain the input domain name
04 switch ($ mydomin ){
05 case ("www.023wo.com "):
06 header ('HTTP/1.1 301 Moved Permanently '); // sends a 301 header
07 header ('location: [url] http://www.023wo.com/wo'#/url]); // jump to the corresponding domain name directory
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?>