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