PHP_SMART_HOME_V3/public/.htaccess

19 lines
530 B
ApacheConf
Raw Normal View History

2020-04-23 15:37:19 +00:00
RewriteEngine On
DirectoryIndex ./index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !.css
RewriteCond %{REQUEST_FILENAME} !.js
2021-03-01 15:02:21 +00:00
RewriteRule (.*) ./index.php?url=$1#$2 [QSA,L]
2020-04-23 15:37:19 +00:00
2020-05-25 19:21:38 +00:00
#token to HTTP_AUTHORIZATION
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule . - [e=HTTP_AUTHORIZATION:%1]
2021-03-01 15:02:21 +00:00
#RewriteCond %{HTTPS} off
#RewriteCond %{REQUEST_URI} !^/api/update
#RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
2020-04-23 15:37:19 +00:00
2020-05-25 19:21:38 +00:00
AddType application/x-httpd-php .php .phtml