forked from phplucidframe/phplucidframe
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.htaccess
26 lines (20 loc) · 853 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
# Disable directory browsing
Options -Indexes
# Set the default handler.
DirectoryIndex index.php index.html index.htm
# ----------------------------------------------------------------------
# Rewrite engine
# ----------------------------------------------------------------------
# Turning on the rewrite engine is necessary for the following rules and features.
<IfModule mod_rewrite.c>
RewriteEngine on
# Ensure Authorization header is passed along
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteRule ^index.php$ app/index.php [NC,L]
# If the request is not for a valid file/directory/link
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^ app/index.php [NC,L]
</IfModule>