From e35f0686010507f71d1207442e252a126d4dd5ac Mon Sep 17 00:00:00 2001 From: augushong Date: Fri, 22 Apr 2022 10:06:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=95=E5=85=A5nginx=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=A8=A1=E6=9D=BF=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.htaccess | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 nginx.htaccess diff --git a/nginx.htaccess b/nginx.htaccess new file mode 100644 index 0000000..f9e0970 --- /dev/null +++ b/nginx.htaccess @@ -0,0 +1,5 @@ +location / { + if (!-e $request_filename){ + rewrite ^(.*)$ /index.php?s=$1 last; break; + } +}