8 行
364 B
Plaintext
8 行
364 B
Plaintext
# FastAdmin / ThinkPHP 伪静态
|
||
# 本文件被 nginx vhost 的 location / 通过 include 引入(见 fenleixinxi_9980.conf)。
|
||
# 作用:文件/目录不存在时,统一交给入口 index.php 走 ?s= 路由,
|
||
# 使 /api/v1/** 、/s.php/** 等完整 URL 与线上一致可用。
|
||
if (!-e $request_filename) {
|
||
rewrite ^(.*)$ /index.php?s=$1 last;
|
||
}
|