From bb4ecf5df5e6e18adaf51b24489731602fb06280 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Sat, 29 Dec 2018 13:49:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BC=AA=E9=9D=99=E6=80=81?= =?UTF-8?q?=E8=A7=84=E5=88=99=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/{.htaccess => htaccess-apache} | 2 +- public/htaccess-nginx | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) rename public/{.htaccess => htaccess-apache} (94%) create mode 100644 public/htaccess-nginx diff --git a/public/.htaccess b/public/htaccess-apache similarity index 94% rename from public/.htaccess rename to public/htaccess-apache index cbc786893..f1adcc2fa 100755 --- a/public/.htaccess +++ b/public/htaccess-apache @@ -5,4 +5,4 @@ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] - + \ No newline at end of file diff --git a/public/htaccess-nginx b/public/htaccess-nginx new file mode 100644 index 000000000..9778694c9 --- /dev/null +++ b/public/htaccess-nginx @@ -0,0 +1,5 @@ +location / { + if (!-e $request_filename) { + rewrite ^(.*)$ /index.php?s=/$1 last; + } +} \ No newline at end of file -- GitLab