picodav/.htaccess
bohwaz d6b1a15f20 Make sure condition is in <IfVersion
FossilOrigin-Name: 0c0e77be779e2290e65e81ca31bdc4ce5006a3061e02a771f431497ed5e7db3c
2025-03-09 15:48:24 +00:00

22 lines
606 B
ApacheConf

DirectoryIndex disabled
<IfModule mod_version.c>
<IfVersion >= 2.4.13>
# Force Apache to pass the Authorization header to PHP
# See https://github.com/kd2org/picodav/issues/14
CGIPassAuth On
</IfVersion>
</IfModule>
RedirectMatch 404 \.picodav\.ini
RewriteEngine On
RewriteBase /
# Uncomment the following 2 lignes to make things a bit faster for
# downloading files, AND you don't use PicoDAV users to manage access,
# but a regular .htpasswd file and config for your web server.
#RewriteCond %{REQUEST_FILENAME} !-f [OR]
#RewriteCond %{REQUEST_METHOD} !GET
RewriteRule ^.*$ /index.php [END]