帝国cms泛程序新加蜘蛛池统计
开通会员,永久免费下载所有软件与网站程序
会员地址:https://l6ikk7.cn/?id=4
PC伪静态:
location / {
try_files $uri $uri/ @pan2dir;
}
location @pan2dir {
# 1-4: /{num} /{en} /{num}.html /{en}.html
rewrite ^/([0-9]+)$ /e/extend/pan2dir/router.php last;
rewrite ^/([A-Za-z]+)$ /e/extend/pan2dir/router.php last;
rewrite ^/([0-9]+)\.html$ /e/extend/pan2dir/router.php last;
rewrite ^/([A-Za-z]+)\.html$ /e/extend/pan2dir/router.php last;
rewrite ^(.*)$ /index.php?s=$1 last; break;
# 5-6: /{dir}/{num}.html /{dir}/{en}.html (dir 任意一层)
rewrite ^/[^/]+/[0-9]+\.html$ /e/extend/pan2dir/router.php last;
rewrite ^/[^/]+/[A-Za-z]+\.html$ /e/extend/pan2dir/router.php last;
rewrite ^/([0-9]+)$ /e/extend/pan2dir/router.php?p=$uri last;
rewrite ^/([A-Za-z]+)$ /e/extend/pan2dir/router.php?p=$uri last;
rewrite ^/([0-9]+)\.html$ /e/extend/pan2dir/router.php?p=$uri last;
rewrite ^/([A-Za-z]+)\.html$ /e/extend/pan2dir/router.php?p=$uri last;
rewrite ^/[^/]+/[0-9]+\.html$ /e/extend/pan2dir/router.php?p=$uri last;
rewrite ^/(game|app|article)/[0-9A-Za-z]+\.html$ /e/extend/pan2dir/router.php?p=$uri last;
return 404;
}
location @pan2dir {
rewrite ^(.*)$ /e/extend/pan2dir/router.php?p=$uri last;
}
location ^~ /m/ {
try_files $uri $uri/ @pan2dir_m;
}
location @pan2dir_m {
rewrite ^(.*)$ /e/extend/pan2dir/router.php?p=$uri last;
}
# FanDir 静态泛功能:所有 “/任意目录/数字或英文.html” 交给 fan.php
location ~ ^/([A-Za-z0-9_-]+)/([0-9]+|[A-Za-z]+)\.html$ {
rewrite ^ /fan.php last;
}
# 根目录:/123 /abc /123.html /abc.html 交给 fan.php
location ~ ^/([0-9]+|[A-Za-z]+)(\.html)?$ {
rewrite ^ /fan.php last;
}





-
上一篇
最新CMS博客论坛泛程序 -
下一篇
没有更多文章
相关推荐
评论列表
暂无评论,快抢沙发吧~

欢迎 你 发表评论: