365建站器v12隆重发布,全新的界面,全新的体验,全新的功能,您值得佣有! 365建站器v12隆重发布! 立即查看

365建站Nginx伪静态规则(宝塔Linux版+Nginx)

发表在 新手指南/使用教程 2021-11-21 17:34:53 上一主题 下一主题 0 3154

  1. rewrite ^/((?!zzadmin|templets|uploads|data|images|install|source|Plugins|sitemap|index|robots|favicon).*)([_/\-]+)([0-9]+)([\/]*)$ /index.php?act=show&aid=$3&typestr=$1 last;
  2. rewrite ^/((?!zzadmin|phpmyadmin|templets|uploads|data|images|install|source|Plugins|sitemap|index|robots|favicon).*)/$ /index.php?act=list&typestr=$1 last;
  3. rewrite ^/((?!zzadmin|templets|uploads|data|images|install|source|Plugins|sitemap|index|robots|favicon).*)/class-([0-9]+)-([0-9]+).html /index.php?act=list&classid=$2&PageNo=$3&typestr=$1 last;
  4. rewrite ^/([\-_A-Za-z0-9]+)$ /$1/ permanent;
  5. rewrite ^([/_A-Za-z0-9]+)sitemap.(xml|html)$ /index.php?typestr=$1sitemap.$2 last;
  6. rewrite ^/((?!zzadmin|templets|uploads|data|images|install|source|Plugins|sitemap|index|robots|favicon).*)([_/]+)([A-Za-z0-9]+).html /index.php?act=show&aid=$3&typestr=$1 last;
  7. rewrite ^/((?!zzadmin|templets|uploads|data|images|install|source|Plugins|sitemap|index|robots|favicon).*)/list-([0-9]+)-([0-9]+).html$ /index.php?act=list&tid=$2&PageNo=$3&typestr=$1 last;
  8. rewrite ^/list-([0-9]+)-([0-9]+).html$ /index.php?act=list&tid=$1&PageNo=$2 last;
  9. rewrite ^/templets/(.*)article.htm([?_A-Za-z0-9]+)$ /404.html last;
  10. rewrite ^(.*)/data/(.*).php$ /404.html last;
  11. rewrite ^(.*)/source/([_\-A-Za-z0-9]+).php([?_A-Za-z0-9]+)$ /404.html last;
  12. rewrite ^/article_([0-9]+)([\/]*)$ /index.php?act=show&aid=$1&typestr=article_ last;
  13. rewrite ^/templets/([_\-A-Za-z0-9]+)/style/([_\-A-Za-z0-9]+).css(.*)$ /index.php?act=style&dir=$1&filename=$2 last;
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则