1Panel/cmd/server/nginx_conf/rewrite/zblog.conf

9 lines
197 B
Plaintext
Raw Normal View History

2023-04-14 16:01:06 +08:00
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}