-
Notifications
You must be signed in to change notification settings - Fork 168
/
.htaccess
42 lines (33 loc) · 1.02 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
Options -Indexes
Order allow,deny
Allow from all
<FilesMatch ".*\.[A-Za-z0-9]+">
Deny from all
</FilesMatch>
<FilesMatch "^(index\.php)?$">
Allow from all
</FilesMatch>
<FilesMatch "^(index|service|tilepic)\.php$">
Allow from all
</FilesMatch>
<FilesMatch "^.*\.(css|gif|jpg|png|js|woff|woff2|ttf|swf|map|tif|m4v|xml|ply|stl|html|json|mp3|wav|aiff|tiff|obj|bmp|mp4|pdf|svg|ico|txt)$">
Allow from all
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine on
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>
RewriteRule "(^|/)\.(?!well-known\/)" - [F]
# Pass all requests not referring directly
# to files in the filesystem to index.php.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteCond %{REQUEST_URI} !=/server-status
RewriteCond %{REQUEST_URI} !=/robots.txt
RewriteRule ^ index.php%{REQUEST_URI} [L]
# Block all TRACE/TRACK requests
RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
RewriteRule .* - [F]
</IfModule>