帝国cms怎么从静态页面变为动态页面

静态页面和动态页面各有各的好,今天介绍的是从静态页面变为动态页面,特别是列表页,如果是静态的,每次更新了文章之后都要去重新生成,如果文章多了,大概率会卡死掉。

首先上传附件的两个文件到/e/action下面

然后添加伪静态

if (!-f $request_filename){
    set $rule_0 1$rule_0;
}
if ($request_uri !~ "^(/)(d|e|html|images|s|search|skin|t|tag)($|/)"){
    set $rule_0 2$rule_0;
}
if ($rule_0 = "21"){
    rewrite ^/([0-9a-zA-Z-/]+)/(|index.html|index_[0-9]+.html)$ /e/action/list.php?classid=$1&page=$2 last;
    rewrite ^/([0-9a-zA-Z-/]+)/([0-9a-zA-Z]+)([_0-9]*).html$ /e/action/show.php?classid=$1&id=$2&page=$3 last;
}
if (!-e $request_filename) {
    return 404;
}

发布者:彬彬笔记,转载请注明出处:https://www.binbinbiji.com/diguocms/2255.html

(0)
彬彬笔记彬彬笔记
上一篇 2021年7月2日
下一篇 2021年10月9日

相关推荐

发表回复

登录后才能评论
蜀ICP备14017386号-13