-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
31 lines (25 loc) · 993 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteCond %{REQUEST_URI} !^/public
RewriteCond %{REQUEST_FILENAME} !^/public
RewriteRule ^(.*) public [L]
# symlinks, multiviews & blocking directory listings (e.g. /public/js, /public/css)
Options All FollowSymLinks MultiViews -Indexes
RewriteEngine On
# Remove all trailing slashes
RewriteCond %{REQUEST_FILENAME} !-d
# The commented line below causes problems when SynthesisCMS
# public folder is not in the web server root directory
# RewriteRule ^(.*)/$ /$1 [L,R=301]
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [R=301,L]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>