[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
|
|