From 84670820582bd65b54a76240c6f3d60cb97b761b Mon Sep 17 00:00:00 2001 From: monanxiao Date: Wed, 15 Mar 2023 09:49:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=9F=E5=BC=83=E6=96=87=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E9=9C=80=E8=A6=81=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/.htaccess | 7 +++++++ public/nginx.htaccess | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/public/.htaccess b/public/.htaccess index e69de29..c9018b0 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -0,0 +1,7 @@ + + Options +FollowSymlinks -Multiviews + RewriteEngine On + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] + diff --git a/public/nginx.htaccess b/public/nginx.htaccess index 686c455..0df5722 100644 --- a/public/nginx.htaccess +++ b/public/nginx.htaccess @@ -1,5 +1,5 @@ -location / { - if (!-e $request_filename){ - rewrite ^(.*)$ /index.php?s=$1 last; break; - } +location / { + if (!-e $request_filename){ + rewrite ^(.*)$ /index.php?s=$1 last; break; + } } \ No newline at end of file