]> BookStack Code Mirror - bookstack/blobdiff - public/.htaccess
move zip export into exportservice
[bookstack] / public / .htaccess
index 8eb2dd0ddfa5f7b57bd0f351684dfa2e4e3ac0d3..abe87b39de7a73abd817cedd264d3c1f7b9ec17b 100644 (file)
@@ -1,10 +1,14 @@
 <IfModule mod_rewrite.c>
     <IfModule mod_negotiation.c>
-        Options -MultiViews
+        Options -MultiViews -Indexes
     </IfModule>
 
     RewriteEngine On
 
+    # Handle Authorization Header
+    RewriteCond %{HTTP:Authorization} .
+    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
+
     # Redirect Trailing Slashes If Not A Folder...
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule ^(.*)/$ /$1 [L,R=301]