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

365建站nginx下 伪静态规则

发表在 新手指南/使用教程 2019-1-15 23:13:46 上一主题 下一主题 0 5987

[2021-03-30修正]
365建站nginx下 伪静态规则
rewrite ^/((?!zzadmin|phpmyadmin|templets|plus|uploads|data|images|install|include|Plugins|index|robots|favicon).*)/$ /plus/list.php?typestr=$1 last;
rewrite ^/((?!zzadmin|templets|plus|uploads|data|images|install|include|Plugins|sitemap|index|robots|favicon).*)/class-([0-9]+)-([0-9]+).html /plus/list.php?classid=$2&PageNo=$3&typestr=$1 last;
rewrite ^/([\-_A-Za-z0-9]+)$ /$1/ permanent;
rewrite ^/((?!zzadmin|templets|plus|uploads|data|images|install|include|Plugins|sitemap|index|robots|favicon).*)([_/]+)([A-Za-z0-9]+).html /plus/show.php?aid=$3&typestr=$1 last;
rewrite ^/((?!zzadmin|templets|plus|uploads|data|images|install|include|Plugins|sitemap|index|robots|favicon).*)/list-([0-9]+)-([0-9]+).html$ /plus/list.php?tid=$2&PageNo=$3&typestr=$1 last;
rewrite ^/list-([0-9]+)-([0-9]+).html$ /plus/list.php?tid=$1&PageNo=$2 last;
rewrite ^/plus/ad_js.php(.*)$ /plus/api.php$1 last;
rewrite ^/templets/(.*)article.htm([?_A-Za-z0-9]+)$ /plus/404.html last;
rewrite ^(.*)/data/(.*).php$ /plus/404.html last;
rewrite ^(.*)/include/([_\-A-Za-z0-9]+).php([?_A-Za-z0-9]+)$ /plus/404.html last;
rewrite ^/topic_([0-9]+)([\/]*)$ /plus/show.php?aid=$1&typestr=topic_ last;
rewrite ^/templets/([_\-A-Za-z0-9]+)/style/([_\-A-Za-z0-9]+).css(.*)$ /plus/style.php?dir=$1&filename=$2 last;
rewrite ^/(sitemap\.xml|sitemap\.html)$ /plus/list.php?typestr=$1 last;
apache服务器伪静态规则httpd.conf的配置方法 :
http://bbs.365jz.com/thread-2484-1-1.html









回复

使用道具 举报

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

本版积分规则