From 8f98a153f3b443ce2398d127851df4e072209027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Wed, 15 Jun 2022 07:02:16 +0000 Subject: [PATCH] =?UTF-8?q?update=20public/nginx.htaccess.=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=BC=AA=E9=9D=99=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/nginx.htaccess | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/public/nginx.htaccess b/public/nginx.htaccess index 8254399b..57defd49 100755 --- a/public/nginx.htaccess +++ b/public/nginx.htaccess @@ -1,6 +1,8 @@ - location / { // …..省略部分代码 - if (!-e $request_filename) { - rewrite ^(.*)$ /index.php?s=/$1 last; - break; +location / { + index index.html index.htm index.php; + #autoindex on; + if (!-e $request_filename) { + rewrite ^(.*)$ /index.php?s=/$1 last; + break; } - } \ No newline at end of file +} \ No newline at end of file