大佬,你网站的树杈性的伪静态规则能否给一份
大佬,你网站的树杈性的伪静态规则能否给一份使用的如下插件实现:
SEO伪静态增强 (setrewrite)
https://www.dz-x.net/t/1910/1/1.html
(出处: DZ插件网)
主机类型:nginx
伪静态规则为:
rewrite ^([^\.]*)/portal\.html$ $1/portal.php last;
rewrite ^([^\.]*)/list/(+)/(+)\.html$ $1/portal.php?mod=list&catid=$2&page=$3 last;
rewrite ^([^\.]*)/guide/(\w+)/(+)\.html$ $1/forum.php?mod=guide&view=$2&page=$3 last;
rewrite ^([^\.]*)/forum\.html$ $1/forum.php last;
rewrite ^([^\.]*)/f/(+)\.html$ $1/forum.php?gid=$2 last;
rewrite ^([^\.]*)/f/(\w+)/1\.html$ $1/forum.php?mod=forumdisplay&fid=$2 last;
rewrite ^([^\.]*)/t/(+)/1/1\.html$ $1/forum.php?mod=viewthread&tid=$2 last;
rewrite ^([^\.]*)/f/(\w+)/t(+)/(+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3&page=$4 last;
rewrite ^([^\.]*)/f/(\w+)/s(+)/(+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=sortid&sortid=$3&page=$4 last;
rewrite ^([^\.]*)/f/(\w+)/t(+)/s(+)/(+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3&sortid=$4&page=$5 last;
rewrite ^([^\.]*)/f/(\w+)/s(+)/([\w\.]+)/(+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=sortid&sortid=$3&searchsort=1&rewritevars=$4&page=$5 last;
rewrite ^([^\.]*)/f/(\w+)/t(+)/s(+)/([\w\.]+)/(+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=sortid&typeid=$3&sortid=$4&searchsort=1&rewritevars=$5&page=$6 last;
rewrite ^([^\.]*)/tag\.html$ $1/misc.php?mod=tag last;
rewrite ^([^\.]*)/tag/(+)\.html$ $1/misc.php?mod=tag&id=$2 last;
rewrite ^([^\.]*)/tag-name-(.+)\.html$ $1/misc.php?mod=tag&name=$2 last;
rewrite ^([^\.]*)/tag/(+)/(\w+)/(+)\.html$ $1/misc.php?mod=tag&id=$2&type=$3&page=$4 last;
rewrite ^([^\.]*)/t/(+)/photo/(+)/(+)\.html$ $1/forum.php?mod=viewthread&tid=$2&authorid=$3&page=$4 last;
rewrite ^([^\.]*)/t/(+)/pic\.html$ $1/forum.php?mod=viewthread&tid=$2&from=album last;
rewrite ^([^\.]*)/photo/(+)/(+)\.html$ $1/home.php?mod=space&uid=$2&do=album&id=$3 last;
rewrite ^([^\.]*)/group/(gid|sgid)/(+)\.html$ $1/group.php?$2=$3 last;
rewrite ^([^\.]*)/collection\.html$ $1/forum.php?mod=collection last;
rewrite ^([^\.]*)/collection/(+)/(+)\.html$ $1/forum.php?mod=collection&action=view&ctid=$2&page=$3 last;
本帖最后由 yusr 于 2021-11-21 14:01 编辑
我去,我还在想你的伪静态规则怎么做到的
居然把这贴给遗漏了
我是一个一个的去修改- 为/问题还失败了
页:
[1]