Updated apache rules in installation docs
This commit is contained in:
parent 6c0496a1bd
commit 97a02c4868
1 changed files with 15 additions and 2 deletions
| @ -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] | ||||
| |
Loading…
Add table
Add a link
Reference in a new issue