Editing htaccess file for access to /stats folder

I am trying to edit the htaccess file to let me access the /stats folder made by my ispconfig system.

i tried different version like this

RewriteRule ^(stats)($|/) - [L]

but i still get an 404

I didn’t had to modify the .htaccess file to be able to access a local folder. Maybe the read and executable flags are not properly set.

strange, those flags are there

yeah the .htaccess file in the stats folder is sending me to a 404 instead to a login anyone has an idea why this .htaccess dont work:

AuthType Basic
AuthName "Members Only"
AuthUserFile /var/www/clients/client2/web41/web/stats/.htpasswd_stats
require valid-user
DirectoryIndex index.html index.php
Header set Content-Security-Policy "default-src * 'self' 'unsafe-inline' 'unsafe-eval' data:;"
<Files "goaindex.html">
AddDefaultCharset UTF-8
</Files>