iis下dedecms开启伪静态步骤
1、dede后台开启伪静态
2、修改文件:/include/taglib/tag.lib.php
$row['link'] = $cfg_cmsurl."/tags.php?/".urlencode($row['keyword'])."/";
修改为:
$row['link'] = $cfg_cmsurl."/tags/".urlencode($row['keyword']).".html";
3、打开模板目录的taglist.htm
将 tags.php修改为tags.html
4、httpd.ini 文件里加
RewriteRule ^(.*)/tags.html $1/tags.php RewriteRule ^(.*)/tags/(.*).html $1/tags.php?$2
通过上面的代码即可实现dedecms开启伪静态。转载请注明:鹏程木业网