2019-08-23 13:39:42 +02:00
|
|
|
RewriteEngine On
|
|
|
|
|
2020-04-23 21:13:02 +02:00
|
|
|
# require https
|
2020-02-18 21:30:44 +01:00
|
|
|
RewriteCond %{HTTPS} off
|
|
|
|
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
|
|
|
|
RewriteCond %{HTTP:Authorization} ^(.)
|
|
|
|
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-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
|