-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.htaccess
More file actions
22 lines (18 loc) · 868 Bytes
/
.htaccess
File metadata and controls
22 lines (18 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Deny all dot files except .well-known
RewriteCond %{REQUEST_URI} !^/.well-known
RewriteRule "(^|/)\." - [F]
# If the file maps to /data/system/root then serve it directly
RewriteCond %{DOCUMENT_ROOT}/data/system/root/%{REQUEST_URI} -f
RewriteRule ^(.*)$ /data/system/root/%{REQUEST_URI} [L]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-l
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-d
RewriteCond %{REQUEST_URI} !\.(7z|aac|avi|bz2|css|eot|flac|flv|gz|ico|jpeg|jpg|js|json|map|mkv|mov|mp3|mp4|mpeg|mpg|ogg|ogv|opus|otf|pdf|png|rar|svg|tar|ttf|txt|wav|webm|webp|wmv|woff|woff2|xml|zip)$
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
FallbackResource /index.php
</IfModule>