PHP_SMART_HOME_V3/.htaccess

23 lines
648 B
ApacheConf
Raw Normal View History

2019-08-23 11:39:42 +00:00
RewriteEngine On
2020-04-23 19:13:02 +00:00
# require https
#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
RewriteRule (.*) ./public/index.php?url=$1 [L,QSA]
AddType application/x-httpd-php .php .phtml