Updated apache rules in installation docs

This commit is contained in:
Dan Brown 2021-01-23 18:36:06 +00:00
commit 97a02c4868

View file

@ -71,10 +71,23 @@ git clone https://github.com/BookStackApp/BookStack.git --branch release --singl
Ensure `mod_rewrite` is enabled.
```apache
Options +FollowSymLinks
```xml
<IfModule mod_negotiation.c>
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
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]