网站根目录创建.htaccess文件
找到 function sys_ReturnBqTitleLink($r)函数
找到
elseif($class_r[$r[classid]][showdt]==2)
{
$titleurl=$public_r[newsurl].”e/action/ShowInfo.php?classid=$r[classid]&id=$r[id]”;
return $titleurl;
}
替换如下
elseif($class_r[$r[classid]][showdt]==2)
{
if($class_r[$r[classid]][tbname]==”zlktqtpj”){
$titleurl=$public_r[newsurl].”Supply/$r[classid]_$r[id].html”;
}
elseif($class_r[$r[classid]][tbname]==”news”){
$titleurl=$public_r[newsurl].”news/$r[classid]_$r[id].html”;
}
elseif($class_r[$r[classid]][tbname]==”qgxx”){
$titleurl=$public_r[newsurl].”buy/$r[classid]_$r[id].html”;
}
else{
$titleurl=$public_r[newsurl].”e/action/ShowInfo.php?classid=$r[classid]&id=$r[id]”;
}
return $titleurl;
}
这里$class_r[$r[classid]][tbname]==”zlktqtpj”) 后台–管理数据表–表名称 zlktqtpj我的表名称下面同是
.htaccess填写如下
RewriteRule ^Supply\/([0-9]+)_([0-9]+)\.html$ e/action/ShowInfo.php?classid=$1&id=$2
RewriteRule ^news\/([0-9]+)_([0-9]+)\.html$ e/action/ShowInfo.php?classid=$1&id=$2
RewriteRule ^buy\/([0-9]+)_([0-9]+)\.html$ e/action/ShowInfo.php?classid=$1&id=$2
上面是内容伪静态,具体规则不懂得大家百度下吧!