- location / {
- rewrite ^([^.]*)/portal.html$ $1/portal.php last;
- rewrite ^([^.]*)/list/([0-9]+)/([0-9]+).html$ $1/portal.php?mod=list&catid=$2&page=$3 last;
- rewrite ^([^.]*)/guide/(w+)/([0-9]+).html$ $1/forum.php?mod=guide&view=$2&page=$3 last;
- rewrite ^([^.]*)/forum.html$ $1/forum.php last;
- rewrite ^([^.]*)/f/([0-9]+).html$ $1/forum.php?gid=$2 last;
- rewrite ^([^.]*)/f/(w+)/1.html$ $1/forum.php?mod=forumdisplay&fid=$2 last;
- rewrite ^([^.]*)/t/([0-9]+)/1/1.html$ $1/forum.php?mod=viewthread&tid=$2 last;
- rewrite ^([^.]*)/f/(w+)/t([0-9]+)/([0-9]+).html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=typeid&typeid=$3&page=$4 last;
- rewrite ^([^.]*)/f/(w+)/s([0-9]+)/([0-9]+).html$ $1/forum.php?mod=forumdisplay&fid=$2&filter=sortid&sortid=$3&page=$4 last;
- 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;
- 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;
- 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;
- rewrite ^([^.]*)/tag.html$ $1/misc.php?mod=tag last;
- rewrite ^([^.]*)/tag/([0-9]+).html$ $1/misc.php?mod=tag&id=$2 last;
- rewrite ^([^.]*)/tag-name-(.+).html$ $1/misc.php?mod=tag&name=$2 last;
- rewrite ^([^.]*)/tag/([0-9]+)/(w+)/([0-9]+).html$ $1/misc.php?mod=tag&id=$2&type=$3&page=$4 last;
- rewrite ^([^.]*)/thread/([0-9]+)/author/([0-9]+)/([0-9]+).html$ $1/forum.php?mod=viewthread&tid=$2&authorid=$3&page=$4 last;
- rewrite ^([^.]*)/thread/([0-9]+)/album.html$ $1/forum.php?mod=viewthread&tid=$2&from=album last;
- rewrite ^([^.]*)/album/([0-9]+)/([0-9]+).html$ $1/home.php?mod=space&uid=$2&do=album&id=$3 last;
- rewrite ^([^.]*)/group/(gid|sgid)/([0-9]+).html$ $1/group.php?$2=$3 last;
- rewrite ^([^.]*)/collection.html$ $1/forum.php?mod=collection last;
- rewrite ^([^.]*)/collection/([0-9]+)/([0-9]+).html$ $1/forum.php?mod=collection&action=view&ctid=$2&page=$3 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 ^([^.]*)/f/(w+)/([0-9]+).html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
- rewrite ^([^.]*)/t/([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 ^([^.]*)/archiver/(fid|tid)/([0-9]+).html$ $1/archiver/index.php?action=$2&value=$3 last;
- rewrite ^([^.]*)/([a-z]+[a-z0-9_]*)-([a-z0-9_-]+).html$ $1/plugin.php?id=$2:$3 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;
- }
- }
-
-
-
-
复制代码
现在手机版伪静态不稳定,然后管理员账号无法访问用户个人中心 |