霸王别姬 发表于 2025-7-8 16:51:30

咨询大侠们一个论坛板块伪静态设置问题 New

如题,现在的伪静态是根据后台给的伪静态设置,如下:
location / {rewrite ^([^\.]*)/portal-(+)\.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-(+)-(+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;      rewrite ^([^\.]*)/forum-(\w+)-(+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;      rewrite ^([^\.]*)/thread-(+)-(+)-(+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;      rewrite ^([^\.]*)/group-(+)-(+)\.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-(+)-(+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last;      rewrite ^([^\.]*)/(fid|tid)-(+)\.html$ $1/index.php?action=$2&value=$3 last;      rewrite ^([^\.]*)/(+*)-(+)\.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人回答
页: [1]
查看完整版本: 咨询大侠们一个论坛板块伪静态设置问题 New