dedecms 专题页面 URL规则改写



适用于V5.7

include\helpers\channelunit.helper.php

大概158行 找到

if(empty($namerule)) {
$namerule = $cfg_special.’/arc-{aid}.html’;
$typeid = -1;
}

后面新增

global $dsql;

$vfrow = $dsql->GetOne(“Select channel from #@__archives where id = $aid”);

if($vfrow[‘channel’]==-1)
{
$namerule = ‘{typedir}/{pinyin}.html’;  //此处替换项可以参照 织梦系统的命名规则 其他{Y}{M}{D} 之类的都通用
}