宝塔的话直接在网站的伪静态一栏中如下就行
location /admin {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
location / {
try_files $uri $uri/ /index.php;
}
宝塔的话直接在网站的伪静态一栏中如下就行
location /admin {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
location / {
try_files $uri $uri/ /index.php;
}