iis下dedecms织梦tag标签伪静态实现

一、dede后台开启伪静态

二、修改 /include/taglib/tag.lib.php,找到:

$row['link'] = $cfg_cmsurl."/tags.php?/".urlencode($row['keyword'])."/";

改成

$row['link'] = $cfg_cmsurl."/tags/".urlencode($row['keyword']).".html";

三、打开模板目录的taglist.htm

将 tags.php修改为tags.html

四、httpd.ini 文件里加

RewriteRule ^(.*)/tags.html $1/tags.php
RewriteRule ^(.*)/tags/(.*).html $1/tags.php?$2