diff --git a/.htaccess b/.htaccess
index 8a24076dcb3f0e57daf7144f7992543924dbcefd..5b0ec05825ce4b047b06a4b520c7f47c81335cc8 100644
--- a/.htaccess
+++ b/.htaccess
@@ -65,6 +65,7 @@
   RewriteCond %{REQUEST_FILENAME} !/status.php
   RewriteCond %{REQUEST_FILENAME} !/ocs/v1.php
   RewriteCond %{REQUEST_FILENAME} !/ocs/v2.php
+  RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/.*
   RewriteRule .* index.php [PT,E=PATH_INFO:$1]
 </IfModule>
 <IfModule mod_mime.c>