2019-08-23 11:39:42 +00:00
|
|
|
RewriteEngine On
|
|
|
|
|
2020-04-23 19:13:02 +00:00
|
|
|
# require https
|
2020-09-14 13:15:47 +00:00
|
|
|
#RewriteCond %{HTTPS} off
|
|
|
|
#RewriteCond %{REQUEST_URI} !^/api/update
|
|
|
|
#RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
2019-09-19 12:48:01 +00:00
|
|
|
|
2020-04-24 16:59:41 +00:00
|
|
|
#token to HTTP_AUTHORIZATION
|
2020-05-25 19:21:38 +00:00
|
|
|
RewriteCond %{HTTP:Authorization} ^(.*)
|
2020-04-24 16:59:41 +00:00
|
|
|
RewriteRule . - [e=HTTP_AUTHORIZATION:%1]
|
|
|
|
|
2020-04-23 19:13:02 +00:00
|
|
|
# serve all files from public subfolder
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !.php
|
2020-05-16 15:18:27 +00:00
|
|
|
RewriteCond %{REQUEST_FILENAME} !.log
|
2020-07-29 06:35:00 +00:00
|
|
|
RewriteCond %{REQUEST_FILENAME} !.ttfnot
|
2020-04-23 19:13:02 +00:00
|
|
|
RewriteCond %{REQUEST_FILENAME} \.
|
|
|
|
RewriteRule (.*) ./public/$1 [L]
|
|
|
|
|
|
|
|
# serve all other request as query parameters
|
2021-04-05 08:43:30 +00:00
|
|
|
# RewriteRule (.*) ./public/index.php?url=$1 [L,QSA]
|
|
|
|
RewriteRule ^(.*?\.php)/([^/]*)/([^/]*)(/.+)? ./public/index.php?url=$1&$2&$3 [NC,N,QSA]
|
2020-04-23 19:13:02 +00:00
|
|
|
|
|
|
|
AddType application/x-httpd-php .php .phtml
|