可可文档伪静态问题
用的discuz X3.5,Nginx,宝塔
为什么这样设置显示插件不存在或已关闭
上面这段是根据教程添加的,下面那段是本来就有的
请问下怎么解决?
为什么这样设置显示插件不存在或已关闭
上面这段是根据教程添加的,下面那段是本来就有的
请问下怎么解决?
- location / {
- rewrite ^([^\.]*)/$ $1/plugin.php?id=keke_doc last;
- rewrite ^([^\.]*)/$ $1/plugin.php?id=keke_doc&ac=list last;
- rewrite ^([^\.]*)/-([0-9]+)-([0-9]+)-([0-9]+)$ $1/plugin.php?id=keke_doc&ac=list&cate=$2-$3-$4 last;
- rewrite ^([^\.]*)/-(.*?)-o-([0-9]+)-p-([0-9]+)$ $1/plugin.php?id=keke_doc&ac=list&cate=$2&o=$3&page=$4 last;
- rewrite ^([^\.]*)/$ $1/plugin.php?id=keke_doc&ac=account last;
- rewrite ^([^\.]*)/-(\w+)$ $1/plugin.php?id=keke_doc&ac=account&op=$2 last;
- rewrite ^([^\.]*)/-(\w+)-([0-9]+)$ $1/plugin.php?id=keke_doc&ac=account&op=$2&page=$3 last;
- rewrite ^([^\.]*)/-([0-9]+)$ $1/plugin.php?id=keke_doc&ac=view&did=$2 last;
- rewrite ^([^\.]*)/-([0-9]+)$ $1/plugin.php?id=keke_doc&ac=user&uid=$2 last;
- rewrite ^([^\.]*)/-([0-9]+)-([0-9]+)$ $1/plugin.php?id=keke_doc&ac=user&uid=$2&o=$3 last;
- rewrite ^([^\.]*)/-(.*?)$ $1/plugin.php?id=keke_doc&ac=pay&priceid=$2 last;
-
- rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;
- rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;
- rewrite ^([^\.]*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
- rewrite ^([^\.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;
- rewrite ^([^\.]*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;
- rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last;
- rewrite ^([^\.]*)/blog-([0-9]+)-([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last;
- rewrite ^([^\.]*)/(fid|tid)-([0-9]+)\.html$ $1/index.php?action=$2&value=$3 last;
- rewrite ^([^\.]*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ $1/plugin.php?id=$2:$3 last;
- if (!-e $request_filename) {
- return 404;
- }
- }