<?php
//通过get函数获取id
$id
=
$_GET
[
'id'
];
if
(
$id
==
"1"
){
$url
=
"http://www.baidu.com"
;
header(
'HTTP/1.1 301 Moved Permanently'
);
Header(
"Location:$url"
);
}
else
if
(
$id
==
"2"
){
$url
=
"http://www.qq.com"
;
header(
'HTTP/1.1 301 Moved Permanently'
);
Header(
"Location:$url"
);
}
else
{
$url
=
"https://sej95.github.io"
;
header(
'HTTP/1.1 301 Moved Permanently'
);
Header(
"Location:$url"
);
}
?>