帝国CMS按分类调tags代码
<?php $sql2="select tagid,tagname,num,isgood,cid,css from {$dbtbpre}enewstags where cid like '%,2,%' and isgood>0 limit 100"; $key_sql=$empire->query($sql2); while($tagr=$empire->fetch($key_sql)) { echo(' <a href="/tag_'.$tagr['tagid'].'_1.html" target="_blank" class="'.$tagr['css'].'">'.$tagr['tagname'].'</a>'); } ?>
httpd.ini伪静态规则
RewriteRule ^/tag_([0-9]+)_([0-9]+).html$ /e/tags/index.php?tagid=$1&page=$2
本文转载自:精准像素:11px.cn ,感谢作者分享实用知识