去评论
dz插件网

咨询大侠们一个社区板块伪静态设置问题

逝水年华
2025/07/08 17:16:18
如题,现在的伪静态是根据后台给的伪静态设置,如下:
  1. location / {  rewrite ^([^\.]*)/portal-([0-9]+)\.html$ $1/plugin.php?id=duceapp_template&mod=portal&d=$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;        }}

现在有一个板块开设了问答悬赏,如果正常打开板块链接的话就是这样:https://www.abc.com/forum-16-1.html

然后只有这样打开页面链接:https://www.abc.com/forum.php?mod=forumdisplay&fid=16&filter=specialtype&specialtype=reward
才能显示为悬赏主题的界面。

所以想问一下各位大侠们,需要怎么添加伪静态,才能让上面这个链接地址是伪静态?


我知道答案 回答被采纳将会获得1 贡献 已有0人回答