-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.htaccess
More file actions
34 lines (27 loc) · 768 Bytes
/
.htaccess
File metadata and controls
34 lines (27 loc) · 768 Bytes
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
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
#Header edit Set-Cookie ^(PHPSESSID.*) $1;SameSite=None
ErrorDocument 503 /errors/503.html
ErrorDocument 403 /errors/403.html
RewriteEngine on
RewriteBase /api/v1/toil/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_URI} !^/api/v1/toil/index\.php
RewriteRule ^(.*)$ index.php/$1
#[QSA,L]
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
</IfModule>
<FilesMatch "app.ini">
Require all denied
</FilesMatch>
<FilesMatch "app.json">
Require all denied
</FilesMatch>
<FilesMatch "README.md">
Require all denied
</FilesMatch>