From b25aece9ae85bae43fcbacef9a07896a2c50991e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=BF=8A=E5=AE=8F?= <389838709@qq.com> Date: Tue, 2 Jul 2024 16:14:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/.htaccess | 0 public/nginx.htaccess | 8 ++++++++ 2 files changed, 8 insertions(+) create mode 100644 public/.htaccess create mode 100644 public/nginx.htaccess diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..e69de29 diff --git a/public/nginx.htaccess b/public/nginx.htaccess new file mode 100644 index 0000000..1b06492 --- /dev/null +++ b/public/nginx.htaccess @@ -0,0 +1,8 @@ +location / { +  index index.php index.html; +  if (!-e $request_filename) { +    rewrite ^/index.php(.*)$ /index.php?s=$1 last; #必须在前面 +    rewrite ^(.*)$ /index.php?s=$1 last; +    break; +  } +} \ No newline at end of file