diff --git a/.htaccess b/.htaccess
index 2ac5e0e7a..f13591f2c 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,5 +1,8 @@
RewriteEngine on
+ # Uncomment if you have a .well-known directory in the root folder, e.g. for the Let's Encrypt challenge
+ # https://tools.ietf.org/html/rfc5785
+ #RewriteRule ^(\.well-known/.*)$ $1 [L]
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
\ No newline at end of file
diff --git a/app/.htaccess b/app/.htaccess
index 128e7871b..f7ab0332c 100644
--- a/app/.htaccess
+++ b/app/.htaccess
@@ -1,5 +1,8 @@
RewriteEngine on
+ # Uncomment if you have a .well-known directory in the app folder, e.g. for the Let's Encrypt challenge
+ # https://tools.ietf.org/html/rfc5785
+ #RewriteRule ^(\.well-known/.*)$ $1 [L]
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
\ No newline at end of file