-
Notifications
You must be signed in to change notification settings - Fork 66
/
.htaccess
26 lines (21 loc) · 820 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
# Enable rewrite engine and route requests to framework
RewriteEngine On
Options -Indexes
# Some servers require you to specify the `RewriteBase` directive
# In such cases, it should be the path (relative to the document root)
# containing this .htaccess file
#
#RewriteBase /
#Return 404 on important files. This will prove effective especially to scanners
RewriteRule ^(tmp)\/|\.ini$ - [R=404]
RewriteCond %{REQUEST_URI} /framework/data/*.
RewriteRule .* index.php [L,QSA]
RewriteCond %{REQUEST_URI} /tmp/*.
RewriteRule .* index.php [L,QSA]
RewriteCond %{REQUEST_URI} \.html?$
RewriteRule \.html?$ - [R=404]
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L,QSA]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]