From c119ea160bba5b4a4a66a8e378c2b112c789143a Mon Sep 17 00:00:00 2001 From: weiz Date: Tue, 21 Nov 2023 13:31:53 +0800 Subject: [PATCH] update --- .gitignore | 3 +-- public/nginx.htaccess | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 public/nginx.htaccess diff --git a/.gitignore b/.gitignore index e5698ef7..49298d72 100644 --- a/.gitignore +++ b/.gitignore @@ -5,5 +5,4 @@ /public/uploads/* !/public/uploads/index.html /runtime/* -!/runtime/index.html -/public/nginx.htaccess \ No newline at end of file +!/runtime/index.html \ No newline at end of file diff --git a/public/nginx.htaccess b/public/nginx.htaccess new file mode 100644 index 00000000..caaedcac --- /dev/null +++ b/public/nginx.htaccess @@ -0,0 +1,5 @@ +location / { + if (!-f $request_filename) { + rewrite ^(.*)$ /index.php?s=/$1 last; + } +} \ No newline at end of file