去评论
dz插件网

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

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

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











以下是现用规则,
  1. location / {
  2. rewrite ^([^\.]*)/portal\.html$ $1/portal.php last;
  3. rewrite ^([^\.]*)/list-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=list&catid=$2&page=$3 last;
  4. rewrite ^([^\.]*)/guide-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=guide&view=$2&page=$3 last;
  5. rewrite ^([^\.]*)/forum\.html$ $1/forum.php last;
  6. rewrite ^([^\.]*)/f/([0-9]+)\.html$ $1/forum.php?gid=$2 last;
  7. rewrite ^([^\.]*)/f/(\w+)/1\.html$ $1/forum.php?mod=forumdisplay&fid=$2 last;
  8. rewrite ^([^\.]*)/t/([0-9]+)/1/1\.html$ $1/forum.php?mod=viewthread&tid=$2 last;
  9. rewrite ^([^\.]*)/f/(\w+)/t([0-9]+)/([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3&page=$4 last;
  10. rewrite ^([^\.]*)/f/(\w+)/s([0-9]+)/([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=sortid&sortid=$3&page=$4 last;
  11. rewrite ^([^\.]*)/f/(\w+)/t([0-9]+)/s([0-9]+)/([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3&sortid=$4&page=$5 last;
  12. rewrite ^([^\.]*)/f/(\w+)/s([0-9]+)/([\w\.\|]+)/([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=sortid&sortid=$3&searchsort=1&rewritevars=$4&page=$5 last;
  13. rewrite ^([^\.]*)/f/(\w+)/t([0-9]+)/s([0-9]+)/([\w\.\|]+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=sortid&typeid=$3&sortid=$4&searchsort=1&rewritevars=$5&page=$6 last;
  14. rewrite ^([^\.]*)/tag\.html$ $1/misc.php?mod=tag last;
  15. rewrite ^([^\.]*)/tag/([0-9]+)\.html$ $1/misc.php?mod=tag&id=$2 last;
  16. rewrite ^([^\.]*)/tag/name-(.+)\.html$ $1/misc.php?mod=tag&name=$2 last;
  17. rewrite ^([^\.]*)/tag/([0-9]+)/(\w+)/([0-9]+)\.html$ $1/misc.php?mod=tag&id=$2&type=$3&page=$4 last;
  18. rewrite ^([^\.]*)/thread/([0-9]+)/author/([0-9]+)/([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&authorid=$3&page=$4 last;
  19. rewrite ^([^\.]*)/thread/([0-9]+)/album\.html$ $1/forum.php?mod=viewthread&tid=$2&from=album last;
  20. rewrite ^([^\.]*)/album-([0-9]+)-([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=album&id=$3 last;
  21. rewrite ^([^\.]*)/group-(gid|sgid)-([0-9]+)\.html$ $1/group.php?$2=$3 last;
  22. rewrite ^([^\.]*)/collection\.html$ $1/forum.php?mod=collection last;
  23. rewrite ^([^\.]*)/collection-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=collection&action=view&ctid=$2&page=$3 last;
  24. rewrite ^([^\.]*)/page-(.+)\.html$ $1/plugin.php?id=comiis_app_portal&pid=$2 last;
  25. rewrite ^([^\.]*)/topic/(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;
  26. rewrite ^([^\.]*)/article/([0-9]+)/([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;
  27. rewrite ^([^\.]*)/forum-([0-9]+)\.html$ $1/forum.php?gid=$2 last;
  28. rewrite ^([^\.]*)/f/(\w+)/([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
  29. rewrite ^([^\.]*)/forumtype-(\w+)-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3&page=$5 last;
  30. rewrite ^([^\.]*)/t/([0-9]+)/([0-9]+)/([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;
  31. rewrite ^([^\.]*)/group/([0-9]+)/([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;
  32. rewrite ^([^\.]*)/space/(username|uid)/(.+)\.html$ $1/home.php?mod=space&$2=$3 last;
  33. rewrite ^([^\.]*)/blog/([0-9]+)/([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last;
  34. rewrite ^([^\.]*)/archiver/(fid|tid)/([0-9]+)\.html$ $1/archiver/index.php?action=$2&value=$3 last;
  35. rewrite ^([^\.]*)/tag/(.+)\.html$ $1/misc.php?mod=tag&id=$2 last;
  36. rewrite ^([^\.]*)/tag/$ $1/misc.php?mod=tag last;
  37. rewrite ^([^\.]*)/tag/(\w+)-(\d+)-(\d+)\.html$ $1/misc.php?mod=tag&id=$3&type=$2&page=$4 last;
  38. rewrite ^([^\.]*)/gid-([0-9]+)\.html$ $1/forum.php?gid=$2 last;
  39. rewrite ^([^\.]*)/wzdp\.html$ $1/plugin.php?id=xlwsq_wzdp last;
  40. rewrite ^([^\.]*)/wzdp_list_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp&a=$2&b=$3 last;
  41. rewrite ^([^\.]*)/wzdp_list_([0-9]+)_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp&a=$2&b=$3&page=$4 last;
  42. rewrite ^([^\.]*)/wzdp_list_([0-9]+)_([0-9]+)_tj\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp&a=$2&b=$3&paixu=tj last;
  43. rewrite ^([^\.]*)/wzdp_list_([0-9]+)_([0-9]+)_rq\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp&a=$2&b=$3&paixu=rq last;
  44. rewrite ^([^\.]*)/wzdp_list_([0-9]+)_([0-9]+)_wytj\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp&a=$2&b=$3&paixu=wytj last;
  45. rewrite ^([^\.]*)/wzdp_list_([0-9]+)_([0-9]+)_dps\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp&a=$2&b=$3&paixu=dps last;
  46. rewrite ^([^\.]*)/wzdp_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_wzdp&mod=view&sid=$2 last;
  47. rewrite ^([^\.]*)/wzdp_user\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp_user last;
  48. rewrite ^([^\.]*)/wzdp_user_mylist\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp_user&p=mylist last;
  49. rewrite ^([^\.]*)/wzdp_user_add\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp_user&p=add last;
  50. rewrite ^([^\.]*)/wzdp_user_favorites\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp_user&p=favorites last;
  51. rewrite ^([^\.]*)/wzdp_user_mypinglun\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp_user&p=mypinglun last;
  52. rewrite ^([^\.]*)/wzdp_list_([0-9]+)_([0-9]+)_pf\.html$ $1/plugin.php?id=xlwsq_wzdp:xlwsq_wzdp&a=$2&b=$3&paixu=pf last;
  53. rewrite ^([^\.]*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ $1/plugin.php?id=$2:$3 last;
  54.         if (!-e $request_filename) {
  55.                         return 404;
  56.         }
  57. }