PHP实现301的代码
header( "HTTP/1.1 301 Moved Permanently" ) ;
header("Location:url");
网页识别的却是302
修改方法
header("Location:url",TRUE,301);
exit;
就解决掉了~
PHP实现301的代码
header( "HTTP/1.1 301 Moved Permanently" ) ;
header("Location:url");
网页识别的却是302
修改方法
header("Location:url",TRUE,301);
exit;
就解决掉了~