比如有个页面的URL是www.xx.com/a,但是这个页面将放弃,想跳转至www.xx.com/b,怎么用PHP实现301跳转?
我在网上没搜索到教程,只要来这里问问高手们。
1
Biwood 2015-01-06 12:12:18 +08:00
|
2
mahone3297 2015-01-06 12:15:54 +08:00
header
|
3
yinxingren 2015-01-06 12:18:08 +08:00 via Android
Header()输出头
|
4
yinxingren 2015-01-06 12:21:42 +08:00 via Android
|
5
Slienc7 2015-01-06 12:51:19 +08:00
header("http://www.xx.com/b");
|
6
zhs227 2015-01-06 13:01:15 +08:00
// 301 Moved Permanently
header("Location: /foo.php",TRUE,301); |