xiaojie83 发表于 2022-3-30 15:00:33

SEO伪静态增强 6.8用户首页404,点击任何用户都是

本帖最后由 xiaojie83 于 2022-3-30 15:03 编辑

SEO伪静态增强 6.8用户首页404,点击任何用户都是其他都好,就是一点个人资料就404报错
载图是DZ默认规则改写和插件规则,帮忙看看是什么问题404错误链接/space/username/home.php?mod=space&uid=1&do=profile











以下是现用规则,
location / {
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 ^([^\.]*)/thread/(+)/author/(+)/(+)\.html$ $1/forum.php?mod=viewthread&tid=$2&authorid=$3&page=$4 last;
rewrite ^([^\.]*)/thread/(+)/album\.html$ $1/forum.php?mod=viewthread&tid=$2&from=album last;
rewrite ^([^\.]*)/album-(+)-(+)\.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;
rewrite ^([^\.]*)/page-(.+)\.html$ $1/plugin.php?id=comiis_app_portal&pid=$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-(+)\.html$ $1/forum.php?gid=$2 last;
rewrite ^([^\.]*)/f/(\w+)/(+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
rewrite ^([^\.]*)/forumtype-(\w+)-(\w+)-(+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3&page=$5 last;
rewrite ^([^\.]*)/t/(+)/(+)/(+)\.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 ^([^\.]*)/archiver/(fid|tid)/(+)\.html$ $1/archiver/index.php?action=$2&value=$3 last;
rewrite ^([^\.]*)/tag/(.+)\.html$ $1/misc.php?mod=tag&id=$2 last;
rewrite ^([^\.]*)/tag/$ $1/misc.php?mod=tag last;
rewrite ^([^\.]*)/tag/(\w+)-(\d+)-(\d+)\.html$ $1/misc.php?mod=tag&id=$3&type=$2&page=$4 last;
rewrite ^([^\.]*)/gid-(+)\.html$ $1/forum.php?gid=$2 last;
rewrite ^([^\.]*)/wzdp\.html$ $1/plugin.php?id=xlwsq_wzdp last;
rewrite ^([^\.]*)/wzdp_list_(+)_(+)\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp&a=$2&b=$3 last;
rewrite ^([^\.]*)/wzdp_list_(+)_(+)_(+)\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp&a=$2&b=$3&page=$4 last;
rewrite ^([^\.]*)/wzdp_list_(+)_(+)_tj\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp&a=$2&b=$3&paixu=tj last;
rewrite ^([^\.]*)/wzdp_list_(+)_(+)_rq\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp&a=$2&b=$3&paixu=rq last;
rewrite ^([^\.]*)/wzdp_list_(+)_(+)_wytj\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp&a=$2&b=$3&paixu=wytj last;
rewrite ^([^\.]*)/wzdp_list_(+)_(+)_dps\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp&a=$2&b=$3&paixu=dps last;
rewrite ^([^\.]*)/wzdp_(+)\.html$ $1/plugin.php?id=xlwsq_wzdp&mod=view&sid=$2 last;
rewrite ^([^\.]*)/wzdp_user\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp_user last;
rewrite ^([^\.]*)/wzdp_user_mylist\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp_user&p=mylist last;
rewrite ^([^\.]*)/wzdp_user_add\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp_user&p=add last;
rewrite ^([^\.]*)/wzdp_user_favorites\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp_user&p=favorites last;
rewrite ^([^\.]*)/wzdp_user_mypinglun\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp_user&p=mypinglun last;
rewrite ^([^\.]*)/wzdp_list_(+)_(+)_pf\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp&a=$2&b=$3&paixu=pf last;
rewrite ^([^\.]*)/(+*)-(+)\.html$ $1/plugin.php?id=$2:$3 last;
      if (!-e $request_filename) {
                        return 404;
      }
}





admin 发表于 2022-3-30 15:01:52

小问题,单独把个人资料页这行的伪静态规则放到最前面顺序。实现效果例如:https://www.dz-x.net/space/uid/1.html

xiaojie83 发表于 2022-3-30 15:05:26

admin 发表于 2022-3-30 15:01
小问题,单独把个人资料页这行的伪静态规则放到最前面顺序。实现效果例如:https://www.dz-x.net/space/uid ...

就是放到第一条吗? 还是DZ默认规则第一条

admin 发表于 2022-3-30 15:34:54

xiaojie83 发表于 2022-3-30 15:05
就是放到第一条吗? 还是DZ默认规则第一条

可以联系右侧客服使用 ToDesk发远程协助帮助你。

xiaojie83 发表于 2022-3-30 16:15:49

admin 发表于 2022-3-30 15:34
可以联系右侧客服使用 ToDesk发远程协助帮助你。

联系了没反应,直接说解决办法吧问题404错误链接/space/username/home.php?mod=space&uid=1&do=profile

单条放到那都一样的,全规则第一条也404

admin 发表于 2022-3-30 16:33:59

xiaojie83 发表于 2022-3-30 16:15
联系了没反应,直接说解决办法吧问题404错误链接/space/username/home.php?mod=space&uid=1&do=profile

...

已处理,问题细节:

xiaojie83 发表于 2022-3-30 17:14:51

admin 发表于 2022-3-30 16:33
已处理,问题细节:

多谢老大远程排除问题!真给力,
页: [1]
查看完整版本: SEO伪静态增强 6.8用户首页404,点击任何用户都是

创宇盾启航版免费网站防御网站加速服务