From 93b713b5081097066332d4adc65ce60071f48327 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Tue, 18 Aug 2020 17:10:56 +0800 Subject: [PATCH] exclude .well-known folder to auto acme --- .htaccess | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.htaccess b/.htaccess index 6ad16ee..baee690 100644 --- a/.htaccess +++ b/.htaccess @@ -2,13 +2,15 @@ # # LoadModule rewrite_module modules/mod_rewrite.so # # AllowOverride All RewriteEngine On +# RewriteCond $1 !^(.well-known) RewriteRule ^(.*) index.php?/$1 [L] ###----------------------------------- -# # nginx -# rewrite ^(.*) /index.php?/$1 last; +### nginx +# #################rewrite ^(.*) /index.php?/$1 last; +# rewrite ^/(?!.well-known)(.*)$ /index.php?/$1 last; # -# # caddy +### caddy # rewrite { # to index.php?/$1 # }