diff --git a/.htaccess b/.htaccess
index 4f2a6f35af4aa6ef5f44ebc3bda8dccae9d13c91..cb2cc9cf7e39309b76de79884afa6f8b47755830 100644
--- a/.htaccess
+++ b/.htaccess
@@ -42,6 +42,7 @@
   RewriteRule ^\.well-known/caldav /remote.php/dav/ [R=301,L]
   RewriteRule ^remote/(.*) remote.php [QSA,L]
   RewriteRule ^(build|tests|config|lib|3rdparty|templates)/.* - [R=404,L]
+  RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/.*
   RewriteRule ^(\.|autotest|occ|issue|indie|db_|console).* - [R=404,L]
 
   # Rewrite rules for `front_controller_active`