PHP_SMART_HOME_V3/.htaccess

21 lines
562 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
2020-02-18 20:30:44 +00:00
RewriteCond %{HTTPS} off
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
RewriteCond %{HTTP:Authorization} ^(.)
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-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