mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
CleanUp After Docker Try
This commit is contained in:
1 parent
2f638d8091
commit
090b9f7a7b
123 files changed
+5265
No files matched your search
@@ -0,0 +1,20 @@
|
||||
RewriteEngine On
|
||||
|
||||
# require https
|
||||
RewriteCond %{HTTPS} off
|
||||
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||
|
||||
#token to HTTP_AUTHORIZATION
|
||||
RewriteCond %{HTTP:Authorization} ^(.)
|
||||
RewriteRule . - [e=HTTP_AUTHORIZATION:%1]
|
||||
|
||||
# serve all files from public subfolder
|
||||
RewriteCond %{REQUEST_FILENAME} !.php
|
||||
RewriteCond %{REQUEST_FILENAME} !.log
|
||||
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
|
||||
Reference in new issue
Block a user