From 4de09d0a1521a31b52781f943f3723c3857d4a9f Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Mon, 24 May 2021 17:55:28 +0800 Subject: [PATCH] add nginx rewrite when used in Subdirectory --- .htaccess | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.htaccess b/.htaccess index 307e875..74586b8 100644 --- a/.htaccess +++ b/.htaccess @@ -9,6 +9,11 @@ RewriteRule ^(.*) index.php?/$1 [L] ### nginx # rewrite ^/(?!.well-known)(.*)$ /index.php?/$1 last; # +### nginx Subdirectory 在子目录中使用 +# location /OneManager2/ { +# rewrite ^/(.*)$ /OneManager2/index.php?/$1 last; +# } +# ### caddy # rewrite { # to index.php?/$1