nginx加配置项
伪静态那块
location / {
if (!-e KaTeX parse error: Expected '}', got 'EOF' at end of input: … rewrite ^(.*) /index.php?s=
1
l
a
s
t
;
b
r
e
a
k
;
r
e
w
r
i
t
e
(
.
+
?
p
˙
h
p
)
(
/
.
+
)
1 last; break; rewrite ^(.+?\.php)(/.+)
1last;break;rewrite(.+?p˙hp)(/.+) /$1?s=$2 last; #加上这一行
}
// 加载框架引导文件
require __DIR__ . '/../thinkphp/base.php';
// 绑定到admin模块
\think\Route::bind('admin');
// 关闭路由
\think\App::route(false);
// 设置根url
\think\Url::root('/你的后台入口文件.php'); //修改这个为后台入口文件名