From 4e526f4c58ea0b58691718c335fad9a6f3138d79 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sun, 27 Sep 2020 16:08:50 +0800 Subject: [PATCH] add Caddy2 rule --- .htaccess | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.htaccess b/.htaccess index 938c04f..307e875 100644 --- a/.htaccess +++ b/.htaccess @@ -14,11 +14,13 @@ RewriteRule ^(.*) index.php?/$1 [L] # to index.php?/$1 # } # -### caddy2 json -# "handler": "rewrite", -# "uri": "index.php?{http.request.uri.query}" -# ### caddy2 Caddyfile -# rewrite * index.php?{query} +# @try_files { +# not path /.well-known/* +# file { +# try_files index.php +# } +# } +# rewrite @try_files {http.matchers.file.relative} # ###-----------------------------------