PHPCMSV9 内容页增加301判断
PHPCMSV9 内容页增加301判断
Sandy\phpcms\modules\content\index.php
extract($data);
第77行 这里插入判断代码
//检查文章会员组权限
[cce]
//------------------301判断
if($this->category_setting['content_ishtml']&&!strpos($url, 'html') === false){
//echo $url;
header( "HTTP/1.1 301 Moved Permanently" );
header( "Location: $url" );
exit;
}
[/cce]