织梦dedecms5.3伪静态及rewrite规则 。 2 设置栏目必须是使用动态页 3修改 include/channelunit.func.php 文件 查找
$reurl = $GLOBALS['cfg_phpurl']."/list.php?tid=".$typeid;
替换成:
$reurl = $GLOBALS['cfg_phpurl']."/list-".$typeid.".html";
该处的修改是为了把导航及dede默认的动态链接换成静态
如果你想文章页也伪静态 那么在添加文档时选择 高级参数—>仅动态浏览 附上伪静态规则 iis
[ISAPI_Rewrite] # 缓存3600秒 = 1 小时(hour) CacheClockRate 3600 RepeatLimit 32 RewriteRule ^(.*)/index\.html $1/index\.php RewriteRule ^(.*)/plus/list-([0-9]+)\.html $1/plus/list\.php\?tid=$2 RewriteRule ^(.*)/plus/list-([0-9]+)-([0-9]+)-([0-9]+)\.html $1/plus/list\.php\?tid=$2&TotalResult=$3&PageNo=$4 RewriteRule ^(.*)/plus/view-([0-9]+)-([0-9]+)\.html $1/plus/view\.php\?arcID=$2&pageno=$3 apache
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule index\.html /index\.php RewriteRule plus/list-([0-9]+)\.html$ /plus/list.php?tid=$1 RewriteRule plus/view-([0-9]+)-([0-9]+)\.html$ /plus/view.php?arcID=$1&pageno=$3 RewriteRule plus/list-([0-9]+)-([0-9]+)-([0-9]+)\.html$ /plus/list.php?tid=$1&totalresult=$2&PageNo=$3 |
完整源码网-ym0.cc 织梦教程 织梦dedecms5.3伪静态及rewrite规则_ https://ym0.cc/555.html


常见问题
相关文章
猜你喜欢
- dedecms在首页调用会员信息(会员头像和名字等)_ 2020-06-08
- 织梦cms系统TAG标签和分页伪静态设置教程_ 2020-06-08
- 织梦图集 上传图片小于设定尺寸 缩略图生成失败的解决办法_ 2020-06-08
- 织梦dedecms文章被评论后发短消息给作者的方法_ 2020-06-08
- dedecms 首页arclist按照’weight’排序_ 2020-06-08
- 织梦DedeCMS获取文章链接的函数GetOneArchive使用方法_ 2020-06-08
- dedecms织梦TAG标签显示单个标签共有多少篇文章的方法_ 2020-06-08
- 织梦导航不显示外部链接栏目,修改channelartlist标签方法_ 2020-06-08
- 织梦dedecms wap手机门户站点首页不更新的解决方法_ 2020-06-08
- dede搜索结果页支持article、sql、channelartlist 等标签_ 2020-06-08